[librsvg/rustification] rsvg-cairo-draw: Normalize stroke-width specified as percentage with respect to the viewport
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustification] rsvg-cairo-draw: Normalize stroke-width specified as percentage with respect to the viewport
- Date: Wed, 9 Nov 2016 01:17:41 +0000 (UTC)
commit aa54f11fa7a3a9556822c201f44b53883ddc26c3
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Nov 8 18:22:32 2016 -0600
rsvg-cairo-draw: Normalize stroke-width specified as percentage with respect to the viewport
It was being normalized as LENGTH_DIR_HORIZONTAL here; per the spec it
needs to be LENGTH_DIR_BOTH.
rsvg-cairo-draw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-cairo-draw.c b/rsvg-cairo-draw.c
index 889502f..0515021 100644
--- a/rsvg-cairo-draw.c
+++ b/rsvg-cairo-draw.c
@@ -470,7 +470,7 @@ rsvg_cairo_render_path_builder (RsvgDrawingCtx * ctx, RsvgPathBuilder *builder)
_set_rsvg_affine (render, &state->affine);
- cairo_set_line_width (cr, _rsvg_css_normalize_length (&state->stroke_width, ctx, LENGTH_DIR_HORIZONTAL));
+ cairo_set_line_width (cr, _rsvg_css_normalize_length (&state->stroke_width, ctx, LENGTH_DIR_BOTH));
cairo_set_miter_limit (cr, state->miter_limit);
cairo_set_line_cap (cr, (cairo_line_cap_t) state->cap);
cairo_set_line_join (cr, (cairo_line_join_t) state->join);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]