colorscale: Avoid invalid write

This commit is contained in:
Timm Bäder 2016-10-17 18:34:07 +02:00
parent d72bc7f3e8
commit 6b01940194

View File

@ -106,7 +106,7 @@ gtk_color_scale_draw_trough (GtkColorScale *scale,
red = CLAMP (r * 255, 0, 255);
green = CLAMP (g * 255, 0, 255);
blue = CLAMP (b * 255, 0, 255);
p[x] = (red << 16) | (green << 8) | blue;
p[hue_x] = (red << 16) | (green << 8) | blue;
}
}