From: buliabyak Date: Mon, 25 Feb 2008 10:08:07 +0000 (+0000) Subject: fix-render-of-zero-dimension-rects X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e7e412199b7b3b313320daeed49215402caeac72;p=inkscape.git fix-render-of-zero-dimension-rects --- 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();