summaryrefslogtreecommitdiffstats
path: root/src/sp-rect.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-04-07 00:52:02 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-04-07 00:52:02 +0000
commitafed6cd75ea6bf6f087a8b847eec6c1524d8040f (patch)
tree365039409c1ff6773cfc43f7cf79cbd1b229f4b1 /src/sp-rect.cpp
parentfix bug with garbage lines caused with close_path when part of a subpath is o... (diff)
downloadinkscape-afed6cd75ea6bf6f087a8b847eec6c1524d8040f.tar.gz
inkscape-afed6cd75ea6bf6f087a8b847eec6c1524d8040f.zip
allow a rect with only one dimension == 0 to have curve
(bzr r5361)
Diffstat (limited to 'src/sp-rect.cpp')
-rw-r--r--src/sp-rect.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}