diff --git a/ChangeLog b/ChangeLog index 74499b9821..35dd6e879f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-21 Sven Neumann + + * plug-ins/common/autocrop.c (autocrop): fixed an issue with the + fix for bug #413906. + 2007-06-20 Sven Neumann * plug-ins/common/animationplay.c: applied patch from Paul Seidel diff --git a/plug-ins/common/autocrop.c b/plug-ins/common/autocrop.c index 937b2a0e7e..254ac8e42b 100644 --- a/plug-ins/common/autocrop.c +++ b/plug-ins/common/autocrop.c @@ -294,10 +294,12 @@ autocrop (GimpDrawable *drawable, g_free (buffer); gimp_drawable_detach (drawable); - if (layer_only && - (x2 - x1 != width || y2 - y1 != height)) + if (layer_only) { - gimp_layer_resize (layer_id, x2 - x1, y2 - y1, -x1, -y1); + if (x2 - x1 != width || y2 - y1 != height) + { + gimp_layer_resize (layer_id, x2 - x1, y2 - y1, -x1, -y1); + } } else {