no need to assign "d = buf" twice.

2002-11-01  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolorscale.c (gimp_color_scale_render): no
	need to assign "d = buf" twice.
This commit is contained in:
Michael Natterer 2002-11-01 11:57:01 +00:00 committed by Michael Natterer
parent 4d44cc4851
commit 349289dc9c
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-11-01 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcolorscale.c (gimp_color_scale_render): no
need to assign "d = buf" twice.
2002-11-01 Sven Neumann <sven@gimp.org>
* themes/Default/images/stock-reset-16.png: finally a Reset icon

View File

@ -481,8 +481,6 @@ gimp_color_scale_render (GimpColorScale *scale)
switch (range->orientation)
{
case GTK_ORIENTATION_HORIZONTAL:
d = buf;
for (x = 0, d = buf; x < scale->width; x++, d += 3)
{
gdouble value = (gdouble) x / (gdouble) (scale->width - 1);