mirror of https://github.com/GNOME/gimp.git
pdb: restore the ability to reset the dither matrix to default
This commit is contained in:
parent
02038d5dd3
commit
94d2ee7bcb
|
@ -197,7 +197,7 @@ image_convert_set_dither_matrix_invoker (GimpProcedure *procedure,
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
if (matrix_length == width * height)
|
if (width == 0 || height == 0 || matrix_length == width * height)
|
||||||
{
|
{
|
||||||
gimp_image_convert_set_dither_matrix (matrix, width, height);
|
gimp_image_convert_set_dither_matrix (matrix, width, height);
|
||||||
}
|
}
|
||||||
|
|
|
@ -201,7 +201,7 @@ HELP
|
||||||
%invoke = (
|
%invoke = (
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
{
|
{
|
||||||
if (matrix_length == width * height)
|
if (width == 0 || height == 0 || matrix_length == width * height)
|
||||||
{
|
{
|
||||||
gimp_image_convert_set_dither_matrix (matrix, width, height);
|
gimp_image_convert_set_dither_matrix (matrix, width, height);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue