diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-04-07 00:52:02 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-04-07 00:52:02 +0000 |
| commit | afed6cd75ea6bf6f087a8b847eec6c1524d8040f (patch) | |
| tree | 365039409c1ff6773cfc43f7cf79cbd1b229f4b1 /src/sp-rect.cpp | |
| parent | fix bug with garbage lines caused with close_path when part of a subpath is o... (diff) | |
| download | inkscape-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.cpp | 2 |
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; } |
