Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1445965 Details for
Bug 1583431
link fails using libgerbv from a C++ program, undefined reference to 'screen'
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
bug fix patch dd8f9fa from gerbv repo
gerbv-2.6.2-screen-units.patch (text/plain), 1.57 KB, created by
Eric Smith
on 2018-05-30 17:33:52 UTC
(
hide
)
Description:
bug fix patch dd8f9fa from gerbv repo
Filename:
MIME Type:
Creator:
Eric Smith
Created:
2018-05-30 17:33:52 UTC
Size:
1.57 KB
patch
obsolete
>From dd8f9fabd69a8d16e55116b5038ae6604742eec3 Mon Sep 17 00:00:00 2001 >From: Sergey Alyoshin <alyoshin.s@gmail.com> >Date: Sat, 16 Nov 2013 15:31:21 +0400 >Subject: [PATCH] pnp: can't use screen units > >Pratially undo commit bb318fbf3a1242eada61af47cec8744823e0645c >--- > src/pick-and-place.c | 23 ++++------------------- > 1 file changed, 4 insertions(+), 19 deletions(-) > >diff --git a/src/pick-and-place.c b/src/pick-and-place.c >index ab50337..23d1cd1 100644 >--- a/src/pick-and-place.c >+++ b/src/pick-and-place.c >@@ -56,7 +56,6 @@ > > #include "gerbv.h" > #include "gerber.h" >-#include "main.h" > #ifdef RENDER_USING_GDK > #include "draw-gdk.h" > #else >@@ -161,36 +160,22 @@ pick_and_place_reset_bounding_box (gerbv_net_t *net) { > } > > //! Parses a string representing float number with a unit, default is mil >-static double >-pick_and_place_get_float_unit(char *str) >+static double >+pick_and_place_get_float_unit(const char *str) > { > double x = 0.0; > char unit[41]; >- extern gerbv_screen_t screen; > > /* float, optional space, optional unit mm,cm,in,mil */ > sscanf(str, "%lf %40s", &x, unit); > if(strstr(unit,"in")) { > ; >- } else if(strstr(unit, "mil")) { >- x /= 1000; > } else if(strstr(unit, "cm")) { > x /= 2.54; > } else if(strstr(unit, "mm")) { > x /= 25.4; >- } else { /* default to GUI units */ >- switch (screen.unit) { >- case GERBV_INS: >- break; >- case GERBV_MILS: >- x /= 1000; >- break; >- case GERBV_MMS: >- x /= 25.4; >- break; >- default: >- assert(screen.unit); >- } >+ } else { /* default to mils */ >+ x /= 1000; > } > > return x; >-- >2.14.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1583431
:
1444984
|
1444985
| 1445965 |
1445966