#136 Brush scale markers scroll incorrectly

open
nobody
Linux (10)
5
2011-06-26
2011-06-26
Geza Geleji
No

The brush scale indicators in the brush preview frame may be displayed incorrectly when the corresponding brush does not lie entirely within the frame.
Corrections (in display_brush(), brush_select.c):

848 if (scale)
to
848 if ((scale) && (offset_y + indicator_height > 0) && (offset_y < bsp->preview->allocation.height))

and

851 for (i = 0; i < indicator_height; i++)
to
851 for (i = ystart - offset_y; i < indicator_height; i++)

and

853 gtk_preview_draw_row (GTK_PREVIEW (bsp->preview),
854 scale_indicator_bits[i],
855 offset_x, ystart + i, indicator_width);
to
853 gtk_preview_draw_row (GTK_PREVIEW (bsp->preview),
854 scale_indicator_bits[i],
855 offset_x, offset_y + i, indicator_width);

Discussion