Code

allow a rect with only one dimension == 0 to have curve
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 7 Apr 2008 00:52:02 +0000 (00:52 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 7 Apr 2008 00:52:02 +0000 (00:52 +0000)
src/sp-rect.cpp

index 55d2a3fde3b1fb14fff46d1e8446552f75ccb86e..2428af12e6632b0f995b524f84e64458477f2d3f 100644 (file)
@@ -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;
     }