summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Michael Moore <cmoore@src.gnome.org>2005-12-09 02:02:44 +0000
committerCaleb Michael Moore <cmoore@src.gnome.org>2005-12-09 02:02:44 +0000
commitb8ace23381c1f1c39b6886d92afb8d4806611dc5 (patch)
treecb2aae60db861c6185d403a68f9fa97094a1912a
parent2f837714311e97d56d33819aaa31a4e96ac66c2e (diff)
downloadlibrsvg-b8ace23381c1f1c39b6886d92afb8d4806611dc5.tar.gz
bug 323568
-rw-r--r--ChangeLog5
-rw-r--r--rsvg-shapes.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8ae5d1a4..e87946d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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));