[librsvg] Do not draw marker if the target element's line length is 0.
- From: Hiroyuki Ikezoe <hiikezoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Do not draw marker if the target element's line length is 0.
- Date: Sat, 1 May 2010 00:00:01 +0000 (UTC)
commit c1bf7828c67b730bcb65167f547573e1fba72307
Author: Hiroyuki Ikezoe <poincare ikezoe net>
Date: Sat May 1 08:58:28 2010 +0900
Do not draw marker if the target element's line length is 0.
Fix for bug 545158.
rsvg-marker.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/rsvg-marker.c b/rsvg-marker.c
index 9eb8c64..f66b8fc 100644
--- a/rsvg-marker.c
+++ b/rsvg-marker.c
@@ -228,6 +228,9 @@ rsvg_render_markers (const RsvgBpathDef * bpath_def, RsvgDrawingCtx * ctx)
middlemarker = (RsvgMarker *) state->middleMarker;
endmarker = (RsvgMarker *) state->endMarker;
+ if (linewidth == 0)
+ return;
+
if (!startmarker && !middlemarker && !endmarker)
return;
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]