* Do not try to autocrop a canvas that has only spaces.

This commit is contained in:
Sam Hocevar 2006-09-26 21:39:07 +00:00 committed by sam
parent 808a270565
commit e80a522fcc

View file

@ -51,6 +51,9 @@ void filter_autocrop(cucul_canvas_t *cv)
}
}
if(xmax < xmin || ymax < ymin)
return;
cucul_set_canvas_boundaries(cv, xmin, ymin,
xmax - xmin + 1, ymax - ymin + 1);
}