diff options
author | Caleb Michael Moore <cmoore@src.gnome.org> | 2005-12-09 02:02:44 +0000 |
---|---|---|
committer | Caleb Michael Moore <cmoore@src.gnome.org> | 2005-12-09 02:02:44 +0000 |
commit | b8ace23381c1f1c39b6886d92afb8d4806611dc5 (patch) | |
tree | cb2aae60db861c6185d403a68f9fa97094a1912a | |
parent | 2f837714311e97d56d33819aaa31a4e96ac66c2e (diff) | |
download | librsvg-b8ace23381c1f1c39b6886d92afb8d4806611dc5.tar.gz |
bug 323568
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | rsvg-shapes.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2005-12-09 Caleb Moore <c.moore@student.unsw.edu.au> + + * rsvg-shapes.c: don't attempt to round courners at all in a rect unless dx > 0 && dy > 0 + + 2005-12-07 Ray Strode <rstrode@redhat.com> * 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)); |