app: in gimpbrushcore-loops, fix memory corruption in clear_edges()
s/width/height/ Fixes commit9d19e804ed
. (cherry picked from commit72d4977574
)
This commit is contained in:
@ -56,7 +56,7 @@ clear_edges (GimpTempBuf *buf,
|
|||||||
const Babl *format = gimp_temp_buf_get_format (buf);
|
const Babl *format = gimp_temp_buf_get_format (buf);
|
||||||
gint bpp = babl_format_get_bytes_per_pixel (format);
|
gint bpp = babl_format_get_bytes_per_pixel (format);
|
||||||
gint width = gimp_temp_buf_get_width (buf);
|
gint width = gimp_temp_buf_get_width (buf);
|
||||||
gint height = gimp_temp_buf_get_width (buf);
|
gint height = gimp_temp_buf_get_height (buf);
|
||||||
|
|
||||||
if (top + bottom >= height || left + right >= width)
|
if (top + bottom >= height || left + right >= width)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user