fixed an issue with the fix for bug #413906.

2007-06-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/autocrop.c (autocrop): fixed an issue with the
	fix for bug #413906.


svn path=/trunk/; revision=22810
This commit is contained in:
Sven Neumann 2007-06-21 06:06:27 +00:00 committed by Sven Neumann
parent 33429e9fe2
commit d2375568be
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-06-21 Sven Neumann <sven@gimp.org>
* plug-ins/common/autocrop.c (autocrop): fixed an issue with the
fix for bug #413906.
2007-06-20 Sven Neumann <sven@gimp.org>
* plug-ins/common/animationplay.c: applied patch from Paul Seidel

View File

@ -294,11 +294,13 @@ autocrop (GimpDrawable *drawable,
g_free (buffer);
gimp_drawable_detach (drawable);
if (layer_only &&
(x2 - x1 != width || y2 - y1 != height))
if (layer_only)
{
if (x2 - x1 != width || y2 - y1 != height)
{
gimp_layer_resize (layer_id, x2 - x1, y2 - y1, -x1, -y1);
}
}
else
{
/* convert to image coordinates */