[librsvg] bgo#738367 - Fix handling of V/v/H/h commands in path
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] bgo#738367 - Fix handling of V/v/H/h commands in path
- Date: Fri, 13 Mar 2015 20:14:25 +0000 (UTC)
commit 9628f3da0023bfd3e919e2bfb4c2dc10ad45d9ab
Author: Andrea Griffini <agriff tin it>
Date: Fri Mar 13 12:36:24 2015 -0600
bgo#738367 - Fix handling of V/v/H/h commands in path
These were not setting one of the x/y components for the reflection point
to be used in smooth curves.
https://bugzilla.gnome.org/show_bug.cgi?id=738367
rsvg-path.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/rsvg-path.c b/rsvg-path.c
index 56a5b96..1a5cc5c 100644
--- a/rsvg-path.c
+++ b/rsvg-path.c
@@ -429,6 +429,7 @@ rsvg_parse_path_do_cmd (RSVGParsePathCtx * ctx, gboolean final)
if (ctx->param == 1) {
rsvg_path_builder_line_to (&ctx->builder, ctx->params[0], ctx->cp.point.y);
ctx->cp.point.x = ctx->rp.point.x = ctx->params[0];
+ ctx->rp.point.y = ctx->cp.point.y;
ctx->param = 0;
}
break;
@@ -436,6 +437,7 @@ rsvg_parse_path_do_cmd (RSVGParsePathCtx * ctx, gboolean final)
/* vertical lineto */
if (ctx->param == 1) {
rsvg_path_builder_line_to (&ctx->builder, ctx->cp.point.x, ctx->params[0]);
+ ctx->rp.point.x = ctx->cp.point.x;
ctx->cp.point.y = ctx->rp.point.y = ctx->params[0];
ctx->param = 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]