gEDA-dev: PCB: hid/png.c bug fix

ldoolitt at recycle.lbl.gov ldoolitt at recycle.lbl.gov
Tue Jul 18 23:38:29 EDT 2006


Friends -

Quick fix for the PNG hid.  The existing code will print
the backside, even if it's deselected.

   - Larry

diff -ur --exclude=aclocal.m4 --exclude=CVS --exclude=configure --exclude=Makefile.in pcb-cvs/src/hid/png/png.c pcb-lrd/src/hid/png/png.c
--- pcb-cvs/src/hid/png/png.c	2006-07-07 08:52:26.000000000 -0700
+++ pcb-lrd/src/hid/png/png.c	2006-07-14 11:22:11.000000000 -0700
@@ -514,6 +514,8 @@
 	case SL (SILK, BOTTOM):
 	  if (SL_MYSIDE (idx))
 	    return PCB->ElementOn;
+	  else
+	    return 0;
 	}
     }
   else


More information about the geda-dev mailing list