From d92d49571d6919fdad632c88c23068f96de43085 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 7 Apr 2008 00:52:02 +0000 Subject: [PATCH] allow a rect with only one dimension == 0 to have curve --- src/sp-rect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2