Commit a0cdd4ac authored by Ell's avatar Ell

buffer: in gegl_rectangle_is_empty(), return TRUE if width *or* height is 0

... instead of if *both* are 0.
parent d98ea197
......@@ -218,7 +218,7 @@ gboolean
gegl_rectangle_is_empty (const GeglRectangle *r)
{
g_return_val_if_fail (r != NULL, FALSE);
return r->width == 0 && r->height == 0;
return r->width == 0 || r->height == 0;
}
GeglRectangle *
......
......@@ -129,7 +129,7 @@ gboolean gegl_rectangle_equal_coords (const GeglRectangle *rectangle,
*
* Check if a rectangle has zero area.
*
* Returns TRUE if @rectangle height and width are both zero.
* Returns TRUE if the width or height of @rectangle is 0.
*/
gboolean gegl_rectangle_is_empty (const GeglRectangle *rectangle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment