diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-02-25 10:08:07 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-02-25 10:08:07 +0000 |
| commit | 29bc2378f0c52eb9813c168713ceae1e0b231091 (patch) | |
| tree | 6ca9d983aa56546cf75bab19da8fe494e7aaa311 /src/sp-rect.cpp | |
| parent | snap 3d box handles (diff) | |
| download | inkscape-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.cpp | 5 |
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(); |
