diff options
author | Raph Levien <raph@src.gnome.org> | 2000-05-11 23:54:08 +0000 |
---|---|---|
committer | Raph Levien <raph@src.gnome.org> | 2000-05-11 23:54:08 +0000 |
commit | 3b5c25f5b906535fb53ed647c9d81c21fb815c4f (patch) | |
tree | ab919f60f28f595c4a8c6a555eb978dcecdbd02f /librsvg | |
parent | 792b057dabf0e81a44b04f64c1693dff4e8c100c (diff) | |
download | nautilus-3b5c25f5b906535fb53ed647c9d81c21fb815c4f.tar.gz |
Added a fix to keep rsvg from hanging on zero-width stroke lines.
Diffstat (limited to 'librsvg')
-rw-r--r-- | librsvg/rsvg.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/librsvg/rsvg.c b/librsvg/rsvg.c index 7c915c1c3..235956824 100644 --- a/librsvg/rsvg.c +++ b/librsvg/rsvg.c @@ -614,8 +614,13 @@ rsvg_render_bpath (RsvgCtx *ctx, const ArtBpath *bpath) if (state->stroke) { + double stroke_width = state->stroke_width; + + if (stroke_width < 0.25) + stroke_width = 0.25; + svp = art_svp_vpath_stroke (vpath, state->join, state->cap, - state->stroke_width, 4, 0.25); + stroke_width, 4, 0.25); rsvg_render_svp (ctx, svp, (state->stroke_color << 8) | state->stroke_opacity); art_svp_free (svp); |