From: buliabyak Date: Mon, 7 Apr 2008 00:52:02 +0000 (+0000) Subject: allow a rect with only one dimension == 0 to have curve X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d92d49571d6919fdad632c88c23068f96de43085;p=inkscape.git allow a rect with only one dimension == 0 to have curve --- 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; }