when stroking multiple segments, set paint_core->cur_coords to the start

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.


svn path=/trunk/; revision=26578
This commit is contained in:
Michael Natterer 2008-08-15 19:10:25 +00:00 committed by Michael Natterer
parent 5e304419f1
commit d32b325567
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,15 @@
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.
2008-08-15 Sven Neumann <sven@gimp.org>
* plug-ins/common/mosaic.c: formatting.

View File

@ -175,6 +175,7 @@ gimp_paint_core_stroke_boundary (GimpPaintCore *core,
initialized = TRUE;
core->cur_coords = coords[0];
core->start_coords = coords[0];
core->last_coords = coords[0];
@ -277,6 +278,7 @@ gimp_paint_core_stroke_vectors (GimpPaintCore *core,
{
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);