Code

revert last change: svg spec says that even one zero dimension suppresses rendering...
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 7 Apr 2008 00:57:08 +0000 (00:57 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 7 Apr 2008 00:57:08 +0000 (00:57 +0000)
src/sp-rect.cpp

index 2428af12e6632b0f995b524f84e64458477f2d3f..55d2a3fde3b1fb14fff46d1e8446552f75ccb86e 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;
     }