Small buglet fixed in the autocrop algorithm.
--Sven
This commit is contained in:
@ -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.
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user