[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (bef0dea06cc86cbca3a0b2d3c8a254b69e5027cc)
The branch, master has been updated
via bef0dea06cc86cbca3a0b2d3c8a254b69e5027cc (commit)
from af2f50d4fb838de13dfbb5243e2114c66fefba7b (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/gtk/gtkhid-gdk.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit bef0dea06cc86cbca3a0b2d3c8a254b69e5027cc
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: Don't call gdk_draw_points() when we have no grid points to draw
Fixes this warning seen when zooming close in on a course grid setting:
Gdk-CRITICAL **: gdk_draw_points: assertion `(points != NULL) && (n_points > 0)' failed
:100644 100644 dc2ad98... 461b779... M src/hid/gtk/gtkhid-gdk.c
=========
Changes
=========
commit bef0dea06cc86cbca3a0b2d3c8a254b69e5027cc
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: Don't call gdk_draw_points() when we have no grid points to draw
Fixes this warning seen when zooming close in on a course grid setting:
Gdk-CRITICAL **: gdk_draw_points: assertion `(points != NULL) && (n_points > 0)' failed
diff --git a/src/hid/gtk/gtkhid-gdk.c b/src/hid/gtk/gtkhid-gdk.c
index dc2ad98..461b779 100644
--- a/src/hid/gtk/gtkhid-gdk.c
+++ b/src/hid/gtk/gtkhid-gdk.c
@@ -142,6 +142,8 @@ ghid_draw_grid (void)
points[n].x = Vx (x);
n++;
}
+ if (n == 0)
+ return;
for (y = y1; y <= y2; y += PCB->Grid)
{
int vy = Vy (y);
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs