Fix is_empty_image() function using the maskColor in Indexed mode

This commit is contained in:
David Capello 2018-12-06 11:24:13 -03:00
parent 313498b8c8
commit 259733e87d

View File

@ -362,7 +362,7 @@ bool is_empty_image(const Image* img)
color_t c = 0; // alpha = 0
if (img->colorMode() == ColorMode::INDEXED)
c = img->maskColor();
return is_plain_image(img, 0);
return is_plain_image(img, c);
}
int count_diff_between_images(const Image* i1, const Image* i2)