pcb

solder mask drawing glitch in pcb

Bug #699498 reported by rdrehmel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pcb
Fix Released
Medium
Unassigned

Bug Description

The attached patch fixes drawing of solder mask above pads.

In the case of having a pad with a solder mask value of 0
(i.e. completely covered by solder mask), the drawing code which
clears the solder mask from the pad should not be run. This
not only saves a few cycles (probably irrelevant), but more importantly
fixes the one-pixel lines of removed solder-mask, which can occur
when Pad->Mask is 0.

Revision history for this message
rdrehmel (rdrehmel) wrote :
Revision history for this message
DJ Delorie (djdelorie) wrote :

I think it would be better to not call ClearPad() at all if pad->Mask is 0. The "true" parameter selects the mask or copper clearance size, not whether or not it draws.

Revision history for this message
Colin D Bennett (colinb) wrote :

OK, I tested the following updated patch and it fixes the problem of drawing pads which are entirely covered by solder mask:

--- src/draw.c 2010-09-10 14:30:23 +0000
+++ src/draw.c 2010-11-10 23:32:09 +0000
@@ -673,7 +673,12 @@
 {
   PadTypePtr pad = (PadTypePtr) b;
   if (!XOR (TEST_FLAG (ONSOLDERFLAG, pad), SWAP_IDENT))
- ClearPad (pad, true);
+ {
+ if (pad->Mask != 0)
+ {
+ ClearPad (pad, true);
+ }
+ }
   return 1;
 }

Revision history for this message
rdrehmel (rdrehmel) wrote :
Revision history for this message
rdrehmel (rdrehmel) wrote :

I added a new patch file which incorporates DJ's suggestion.

Colin D Bennett (colinb)
Changed in pcb:
status: New → Confirmed
Peter TB Brett (peter-b)
Changed in pcb:
assignee: nobody → DJ Delorie (dj-delorie)
Peter Clifton (pcjc2)
Changed in pcb:
assignee: DJ Delorie (djdelorie) → Peter Clifton (pcjc2)
Revision history for this message
Peter Clifton (pcjc2) wrote :

Committed, thanks!

Changed in pcb:
status: Confirmed → Fix Committed
assignee: Peter Clifton (pcjc2) → nobody
milestone: none → future-bug-release
Peter Clifton (pcjc2)
Changed in pcb:
milestone: future-bug-release → next-bug-release
Peter Clifton (pcjc2)
Changed in pcb:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.