[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: Re: PCB: Graphical bugs
Friends -
On Tue, 11 Jul 2006 13:21:27 +0300, Tamas Varga wrote in geda-user:
> 1. When on the solder size and selecting an area with the mouse, then
> the selection rectangle is drawn incorrectly. The rectangle is drawn
> between the right side of the selection and the right window edge.
Patch appended. "It Works For Me" [TM].
- Larry
--- pcb-cvs/src/crosshair.c 2006-06-09 20:07:38.000000000 -0700
+++ pcb-lrd/src/crosshair.c 2006-07-13 14:48:44.000000000 -0700
@@ -673,6 +673,10 @@
MAX (Crosshair.AttachedBox.Point1.X, Crosshair.AttachedBox.Point2.X);
y2 =
MAX (Crosshair.AttachedBox.Point1.Y, Crosshair.AttachedBox.Point2.Y);
+ if (Settings.ShowSolderSide) {
+ /* exchange x1 and x2 */
+ LocationType xt = x1; x1 = x2; x2 = xt;
+ }
gui->draw_rect (Crosshair.GC, x1, y1, x2, y2);
}
}
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user