From 29bc2378f0c52eb9813c168713ceae1e0b231091 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Mon, 25 Feb 2008 10:08:07 +0000 Subject: fix-render-of-zero-dimension-rects (bzr r4848) --- src/sp-rect.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sp-rect.cpp') 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(); -- cgit v1.2.3