From b8ace23381c1f1c39b6886d92afb8d4806611dc5 Mon Sep 17 00:00:00 2001 From: Caleb Michael Moore Date: Fri, 9 Dec 2005 02:02:44 +0000 Subject: bug 323568 --- ChangeLog | 5 +++++ rsvg-shapes.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8ae5d1a4..e87946d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-09 Caleb Moore + + * rsvg-shapes.c: don't attempt to round courners at all in a rect unless dx > 0 && dy > 0 + + 2005-12-07 Ray Strode * rsvg-base.c: remove the push call that's more probably wrong and diff --git a/rsvg-shapes.c b/rsvg-shapes.c index e782226a..1f570cb5 100644 --- a/rsvg-shapes.c +++ b/rsvg-shapes.c @@ -368,6 +368,11 @@ _rsvg_node_rect_draw(RsvgNode * self, RsvgDrawingCtx *ctx, if (ry > fabs(h / 2.)) ry = fabs(h / 2.); + if (rx == 0) + ry = 0; + else if (ry == 0) + rx = 0; + /* emulate a rect using a path */ d = g_string_new ("M "); g_string_append (d, g_ascii_dtostr (buf, sizeof (buf), x + rx)); -- cgit v1.2.1