Compare counter value instead its pointer address

(cherry picked from commit be5d23bf98)
This commit is contained in:
qarmin
2020-04-30 14:56:30 +02:00
committed by Jehan
parent 32ed52216c
commit 8bb4b722c8

View File

@ -2451,7 +2451,7 @@ gimp_line_art_simple_fill (GeglBuffer *buffer,
if (x < 0 || x >= gegl_buffer_get_width (buffer) || if (x < 0 || x >= gegl_buffer_get_width (buffer) ||
y < 0 || y >= gegl_buffer_get_height (buffer) || y < 0 || y >= gegl_buffer_get_height (buffer) ||
counter <= 0) *counter <= 0)
return; return;
gegl_buffer_sample (buffer, x, y, NULL, &val, gegl_buffer_sample (buffer, x, y, NULL, &val,