gimp r26578 - in trunk: . app/paint



Author: mitch
Date: Fri Aug 15 19:10:25 2008
New Revision: 26578
URL: http://svn.gnome.org/viewvc/gimp?rev=26578&view=rev

Log:
2008-08-15  Michael Natterer  <mitch gimp org>

	* app/paint/gimppaintcore-stroke.c
	(gimp_paint_core_stroke_boundary)
	(gimp_paint_core_stroke_vectors): when stroking multiple segments,
	set paint_core->cur_coords to the start of each segment. It
	normally gets assigned by gimp_paint_core_start(), but that's not
	called for subsequent segments. Fixes stroking multiple segments
	with the ink tool. The other tools were not affected since they
	plot individual brushes rather than a shape from the last to the
	current coordinates. Spotted by Alexia.



Modified:
   trunk/ChangeLog
   trunk/app/paint/gimppaintcore-stroke.c

Modified: trunk/app/paint/gimppaintcore-stroke.c
==============================================================================
--- trunk/app/paint/gimppaintcore-stroke.c	(original)
+++ trunk/app/paint/gimppaintcore-stroke.c	Fri Aug 15 19:10:25 2008
@@ -175,6 +175,7 @@
 
           initialized = TRUE;
 
+          core->cur_coords   = coords[0];
           core->start_coords = coords[0];
           core->last_coords  = coords[0];
 
@@ -277,6 +278,7 @@
             {
               initialized = TRUE;
 
+              core->cur_coords   = g_array_index (coords, GimpCoords, 0);
               core->start_coords = g_array_index (coords, GimpCoords, 0);
               core->last_coords  = g_array_index (coords, GimpCoords, 0);
 



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