Small buglet fixed in the autocrop algorithm.

--Sven
This commit is contained in:
Sven Neumann
1999-04-22 23:34:58 +00:00
parent ca2cbd3257
commit 174e1a0fab
6 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Fri Apr 23 01:31:29 MEST 1999 Sven Neumann <sven@gimp.org>
* app/crop.c: autocrop used to miss the bottom line
* plug-ins/autocrop/autocrop.c: same fix here
1999-04-22 Michael Natterer <mitschel@cs.tu-berlin.de> 1999-04-22 Michael Natterer <mitschel@cs.tu-berlin.de>
First version of per-tool paint options. No PDB interface yet. First version of per-tool paint options. No PDB interface yet.

View File

@ -1326,7 +1326,7 @@ crop_automatic_callback (GtkWidget *w,
for (x = 0; x < width && !abort; x++) for (x = 0; x < width && !abort; x++)
abort = !(colors_equal_func) (bgcolor, buffer + x * bytes, bytes); abort = !(colors_equal_func) (bgcolor, buffer + x * bytes, bytes);
} }
if (y == height) { if (y == height && !abort) {
g_free (buffer); g_free (buffer);
goto FINISH; goto FINISH;
} }

View File

@ -1326,7 +1326,7 @@ crop_automatic_callback (GtkWidget *w,
for (x = 0; x < width && !abort; x++) for (x = 0; x < width && !abort; x++)
abort = !(colors_equal_func) (bgcolor, buffer + x * bytes, bytes); abort = !(colors_equal_func) (bgcolor, buffer + x * bytes, bytes);
} }
if (y == height) { if (y == height && !abort) {
g_free (buffer); g_free (buffer);
goto FINISH; goto FINISH;
} }

View File

@ -1326,7 +1326,7 @@ crop_automatic_callback (GtkWidget *w,
for (x = 0; x < width && !abort; x++) for (x = 0; x < width && !abort; x++)
abort = !(colors_equal_func) (bgcolor, buffer + x * bytes, bytes); abort = !(colors_equal_func) (bgcolor, buffer + x * bytes, bytes);
} }
if (y == height) { if (y == height && !abort) {
g_free (buffer); g_free (buffer);
goto FINISH; goto FINISH;
} }

View File

@ -147,7 +147,7 @@ static void doit(GDrawable *drawable, gint32 image_id)
abort = !colors_equal(color, buffer + x * bytes, bytes); abort = !colors_equal(color, buffer + x * bytes, bytes);
} }
} }
if (y == height) { if (y == height && !abort) {
g_free(buffer); g_free(buffer);
gimp_drawable_detach(drawable); gimp_drawable_detach(drawable);
return; return;

View File

@ -147,7 +147,7 @@ static void doit(GDrawable *drawable, gint32 image_id)
abort = !colors_equal(color, buffer + x * bytes, bytes); abort = !colors_equal(color, buffer + x * bytes, bytes);
} }
} }
if (y == height) { if (y == height && !abort) {
g_free(buffer); g_free(buffer);
gimp_drawable_detach(drawable); gimp_drawable_detach(drawable);
return; return;