gimp r27132 - in branches/soc-2008-text: . app/tools



Author: danedde
Date: Sun Oct  5 00:17:51 2008
New Revision: 27132
URL: http://svn.gnome.org/viewvc/gimp?rev=27132&view=rev

Log:
2008-10-05  Daniel Eddeland <danedde svn gnome org>

	* app/tools/gimptexttool.c: Fixed clipping rectangle to
	include shell->offset_x and y


Modified:
   branches/soc-2008-text/ChangeLog
   branches/soc-2008-text/app/tools/gimptexttool.c

Modified: branches/soc-2008-text/app/tools/gimptexttool.c
==============================================================================
--- branches/soc-2008-text/app/tools/gimptexttool.c	(original)
+++ branches/soc-2008-text/app/tools/gimptexttool.c	Sun Oct  5 00:17:51 2008
@@ -2040,9 +2040,9 @@
                 NULL);
 
   /* Turn on clipping for text-cursor and selections */
-  cliprect.x = x1;
+  cliprect.x = x1 - GIMP_DISPLAY_SHELL (tool->display->shell)->offset_x;
   cliprect.width = x2 - x1;
-  cliprect.y = y1;
+  cliprect.y = y1 - GIMP_DISPLAY_SHELL (tool->display->shell)->offset_y;
   cliprect.height = y2 - y1;
   gimp_canvas_set_clip_rect (GIMP_CANVAS (GIMP_DISPLAY_SHELL (tool->display->shell)->canvas),
                              GIMP_CANVAS_STYLE_XOR, &cliprect);



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