[PATCH] bug in gnome_canvas_item_get_bounds()



I think I have found a bug in gnome-canvas.c,
gnome_canvas_item_get_bounds (). Or maybe I'm crazy :)

Patch attached.

Richard
Index: gnome-canvas.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/gnome-canvas.c,v
retrieving revision 1.77
diff -u -r1.77 gnome-canvas.c
--- gnome-canvas.c	1999/03/10 05:08:46	1.77
+++ gnome-canvas.c	1999/03/15 21:20:09
@@ -1392,8 +1392,8 @@
 
 		mx1 = MIN (q1.x, q2.x);
 		my1 = MIN (q1.y, q2.y);
-		mx2 = MIN (q3.x, q4.x);
-		my2 = MIN (q4.x, q4.y);
+		mx2 = MAX (q3.x, q4.x);
+		my2 = MAX (q3.y, q4.y);
 
 		if (mx1 < mx2) {
 			tx1 = mx1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]