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

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



The branch, master has been updated
       via  c090b46eeadf2f4aa77e9fe4df1f53b1d5459708 (commit)
      from  b53374c749b9b5f8a65434c3deb71ef026f6fc76 (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/png/png.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


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

commit c090b46eeadf2f4aa77e9fe4df1f53b1d5459708
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Check for empty layers.
    
    If you have a four-layer board but the inner layers are empty, photo
    mode dies.  This checks for at least the more common case, but
    further work to protect against *any* empty layer is warranted.

:100644 100644 89e40e3... 2b4968b... M	src/hid/png/png.c

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

commit c090b46eeadf2f4aa77e9fe4df1f53b1d5459708
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Check for empty layers.
    
    If you have a four-layer board but the inner layers are empty, photo
    mode dies.  This checks for at least the more common case, but
    further work to protect against *any* empty layer is warranted.

diff --git a/src/hid/png/png.c b/src/hid/png/png.c
index 89e40e3..2b4968b 100644
--- a/src/hid/png/png.c
+++ b/src/hid/png/png.c
@@ -738,7 +738,8 @@ png_do_export (HID_Attr_Val * options)
 	      mask = photo_mask ? gdImageGetPixel (photo_mask, x, y) : 0;
 	      silk = photo_silk ? gdImageGetPixel (photo_silk, x, y) : 0;
 
-	      if (gdImageGetPixel (photo_copper[photo_groups[1]], x, y))
+	      if (photo_copper[photo_groups[1]]
+		  && gdImageGetPixel (photo_copper[photo_groups[1]], x, y))
 		rgb (&cop, 40, 40, 40);
 	      else
 		rgb (&cop, 100, 100, 110);




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