[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: PCB Gtk port
On Sat, 26 Feb 2005 16:30:57 -0500 (EST)
sdb@xxxxxxxxxx (Stuart Brorson) wrote:
> 2. When I select the "silk" radio button (to draw on the silk layer),
> the selection drops down to "rat lines". That is, the "rat lines"
> circle fills in. When I draw a line in this mode, the line appears on
> the silk layer. No other layer seems to have this problem. Any ideas
> about what's going on?
OK, I've put a new tarball up or use this patch:
--- gui-top-window.c.orig 2005-02-26 16:44:51.000000000 -0600
+++ gui-top-window.c 2005-02-26 16:52:13.000000000 -0600
@@ -2630,7 +2630,11 @@
/* Turning off a layer that was selected will cause PCB to switch to
| another layer.
*/
- layer = MIN (INDEXOFCURRENT, GUI_RATS_LAYER);
+ if (PCB->RatDraw)
+ layer = GUI_RATS_LAYER;
+ else
+ layer = PCB->SilkActive ? GUI_SILK_LAYER : LayerStack[0];
+
if (layer < MAX_LAYER)
active = PCB->Data->Layer[layer].On;
else if (layer == GUI_SILK_LAYER)
I was using a macro tailored for the Xt PCB button layout.
Bill