[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (3d9bd8bdcaa23ca2c8bc62b4cb4c6ee50d579f1c)



The branch, master has been updated
       via  3d9bd8bdcaa23ca2c8bc62b4cb4c6ee50d579f1c (commit)
      from  b29e05060d7f191f81b58a8cb41b6ada09df53fe (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/hid/gerber/gerber.c |    3 ++-
 src/hid/png/png.c       |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)


=================
 Commit Messages
=================

commit 3d9bd8bdcaa23ca2c8bc62b4cb4c6ee50d579f1c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Fri Mar 6 18:19:42 2009 +0000

    Fix exporters to cope with hairlines now they are passed as width 0, not 1
    
    This fixes breakage introduced in
    commit 8dd739f9bd72dc3c8beb6e4e5e32c124cac0d13b
    
    png exporter:
      - Needs a minimum 1x1 pixel brush for drawing hairlines
      - Report and patch by Levente Kovacs <leventelist@xxxxxxxxx>
    
    gerber exporter:
      - The hairline drawn around holes must be ignored
      - Report and diagnosis by Ineiev <ineiev@xxxxxxxxx>

:100644 100644 7fc62f9... 054208c... M	src/hid/gerber/gerber.c
:100644 100644 0e49be6... 2f4d959... M	src/hid/png/png.c

=========
 Changes
=========

commit 3d9bd8bdcaa23ca2c8bc62b4cb4c6ee50d579f1c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Fri Mar 6 18:19:42 2009 +0000

    Fix exporters to cope with hairlines now they are passed as width 0, not 1
    
    This fixes breakage introduced in
    commit 8dd739f9bd72dc3c8beb6e4e5e32c124cac0d13b
    
    png exporter:
      - Needs a minimum 1x1 pixel brush for drawing hairlines
      - Report and patch by Levente Kovacs <leventelist@xxxxxxxxx>
    
    gerber exporter:
      - The hairline drawn around holes must be ignored
      - Report and diagnosis by Ineiev <ineiev@xxxxxxxxx>

diff --git a/src/hid/gerber/gerber.c b/src/hid/gerber/gerber.c
index 7fc62f9..054208c 100644
--- a/src/hid/gerber/gerber.c
+++ b/src/hid/gerber/gerber.c
@@ -870,7 +870,8 @@ gerber_draw_arc (hidGC gc, int cx, int cy, int width, int height,
   Boolean m = False;
   float arcStartX, arcStopX, arcStartY, arcStopY;
 
-  if (gc->width == 1)
+  /* we never draw zero-width lines */
+  if (gc->width == 0)
     return;
 
   use_gc (gc, 0);
diff --git a/src/hid/png/png.c b/src/hid/png/png.c
index 0e49be6..2f4d959 100644
--- a/src/hid/png/png.c
+++ b/src/hid/png/png.c
@@ -1078,7 +1078,7 @@ use_gc (hidGC gc)
           break;
         }
       r = SCALE (gc->width);
-      if (r == 0 && gc->width > 0)
+      if (r == 0)
 	r = 1;
       sprintf (name, "#%.2x%.2x%.2x_%c_%d", gc->color->r, gc->color->g,
 	       gc->color->b, type, r);




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs