pdb: restore the ability to reset the dither matrix to default

This commit is contained in:
Michael Natterer 2011-10-08 20:28:38 +02:00
parent 02038d5dd3
commit 94d2ee7bcb
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }

View File

@ -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);
} }