summaryrefslogtreecommitdiffstats
path: root/src/sp-rect.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-02-25 10:08:07 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-02-25 10:08:07 +0000
commit29bc2378f0c52eb9813c168713ceae1e0b231091 (patch)
tree6ca9d983aa56546cf75bab19da8fe494e7aaa311 /src/sp-rect.cpp
parentsnap 3d box handles (diff)
downloadinkscape-29bc2378f0c52eb9813c168713ceae1e0b231091.tar.gz
inkscape-29bc2378f0c52eb9813c168713ceae1e0b231091.zip
fix-render-of-zero-dimension-rects
(bzr r4848)
Diffstat (limited to 'src/sp-rect.cpp')
-rw-r--r--src/sp-rect.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp
index cf399d324..55d2a3fde 100644
--- a/src/sp-rect.cpp
+++ b/src/sp-rect.cpp
@@ -249,7 +249,10 @@ sp_rect_set_shape(SPShape *shape)
{
SPRect *rect = (SPRect *) shape;
- if ((rect->height.computed < 1e-18) || (rect->width.computed < 1e-18)) return;
+ if ((rect->height.computed < 1e-18) || (rect->width.computed < 1e-18)) {
+ sp_shape_set_curve_insync(SP_SHAPE(rect), NULL, TRUE);
+ return;
+ }
SPCurve *c = sp_curve_new();