fixed brokeness introduced I when eliminating gradient->last_visited.

2005-03-08  Sven Neumann  <sven@gimp.org>

	* app/core/gimpgradient.c (gimp_gradient_segment_split_uniform):
	fixed brokeness introduced I when eliminating gradient->last_visited.
This commit is contained in:
Sven Neumann 2005-03-08 22:26:12 +00:00 committed by Sven Neumann
parent b439b144ec
commit da9547a8cd
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-03-08 Sven Neumann <sven@gimp.org>
* app/core/gimpgradient.c (gimp_gradient_segment_split_uniform):
fixed brokeness introduced I when eliminating gradient->last_visited.
2005-03-08 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimpviewrenderergradient.c: revert previous
@ -54,7 +59,6 @@
2005-03-07 Sven Neumann <sven@gimp.org>
* app/tools/gimpellipseselecttool.c
* app/tools/gimprectselecttool.[ch]: applied a patch by Nils
Bjorklund that should fix bug #143887 (selection rectangle "moves"
when starting at the top-right corner).

View file

@ -777,9 +777,9 @@ gimp_gradient_segment_split_uniform (GimpGradient *gradient,
seg->right = lseg->left + (i + 1) * seg_len;
seg->middle = (seg->left + seg->right) / 2.0;
gimp_gradient_get_color_at (gradient, seg,
gimp_gradient_get_color_at (gradient, lseg,
seg->left, FALSE, &seg->left_color);
gimp_gradient_get_color_at (gradient, seg,
gimp_gradient_get_color_at (gradient, lseg,
seg->right, FALSE, &seg->right_color);
seg->type = lseg->type;