diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-04-07 00:57:08 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-04-07 00:57:08 +0000 |
| commit | 0e7838f141b94d28d82227f2616926b333f45b6e (patch) | |
| tree | d1f0bb1be370676a5779c3851a7cc298a0659bc2 /src/sp-rect.cpp | |
| parent | allow a rect with only one dimension == 0 to have curve (diff) | |
| download | inkscape-0e7838f141b94d28d82227f2616926b333f45b6e.tar.gz inkscape-0e7838f141b94d28d82227f2616926b333f45b6e.zip | |
revert last change: svg spec says that even one zero dimension suppresses rendering, so this change will need to wait until we switch SPRect to using path
(bzr r5362)
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 2428af12e..55d2a3fde 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; } |
