goocanvas r19 - in trunk: . src



Author: damon
Date: Sun Oct 12 14:16:55 2008
New Revision: 19
URL: http://svn.gnome.org/viewvc/goocanvas?rev=19&view=rev

Log:

2008-10-12  Damon Chaplin  <damon gnome org>

	    * src/goocanvastext.c (goo_canvas_text_create_layout): fixed calculation
	    of text bounds.



Modified:
   trunk/ChangeLog
   trunk/src/goocanvastext.c

Modified: trunk/src/goocanvastext.c
==============================================================================
--- trunk/src/goocanvastext.c	(original)
+++ trunk/src/goocanvastext.c	Sun Oct 12 14:16:55 2008
@@ -500,8 +500,8 @@
 	    }
 	}
 
-      bounds->x2 = origin_x + logical_width;
-      bounds->y2 = origin_y + logical_height;
+      bounds->x2 = bounds->x1 + logical_width;
+      bounds->y2 = bounds->y1 + logical_height;
 
       /* Now adjust it to take into account the ink bounds. Calculate how far
 	 the ink rect extends outside each edge of the logical rect and adjust



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