summaryrefslogtreecommitdiffstats
path: root/src/sp-rect.cpp
diff options
context:
space:
mode:
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();