From afed6cd75ea6bf6f087a8b847eec6c1524d8040f Mon Sep 17 00:00:00 2001 From: bulia byak Date: Mon, 7 Apr 2008 00:52:02 +0000 Subject: allow a rect with only one dimension == 0 to have curve (bzr r5361) --- src/sp-rect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp-rect.cpp') diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp index 55d2a3fde..2428af12e 100644 --- a/src/sp-rect.cpp +++ b/src/sp-rect.cpp @@ -249,7 +249,7 @@ sp_rect_set_shape(SPShape *shape) { SPRect *rect = (SPRect *) shape; - if ((rect->height.computed < 1e-18) || (rect->width.computed < 1e-18)) { + if ((rect->height.computed < 1e-18) && (rect->width.computed < 1e-18)) { sp_shape_set_curve_insync(SP_SHAPE(rect), NULL, TRUE); return; } -- cgit v1.2.3