[librsvg] rsvg-path: Add missing case where reflection point was not set
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg-path: Add missing case where reflection point was not set
- Date: Tue, 3 Nov 2015 21:33:09 +0000 (UTC)
commit 34dcd26396a75405bd691f54a00d689fb6f755d8
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Nov 3 15:32:59 2015 -0600
rsvg-path: Add missing case where reflection point was not set
This is from https://bugzilla.gnome.org/show_bug.cgi?id=677068, although I haven't figured
out why the rightmost/topmost arrow in https://bugzilla.gnome.org/show_bug.cgi?id=685906 doesn't
render yet.
rsvg-path.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/rsvg-path.c b/rsvg-path.c
index 1a5cc5c..e21b084 100644
--- a/rsvg-path.c
+++ b/rsvg-path.c
@@ -331,7 +331,7 @@ rsvg_path_builder_arc (RsvgPathBuilder *builder,
for (i = 0; i < n_segs; i++)
rsvg_path_arc_segment (builder, cx, cy,
- theta1 + i * delta_theta / n_segs,
+ theta1 + i * delta_theta / n_segs,
theta1 + (i + 1) * delta_theta / n_segs,
rx, ry, x_axis_rotation);
}
@@ -375,7 +375,7 @@ rsvg_parse_path_do_cmd (RSVGParsePathCtx * ctx, gboolean final)
ctx->cp.point.x = ctx->rp.point.x = ctx->params[0];
ctx->cp.point.y = ctx->rp.point.y = ctx->params[1];
ctx->param = 0;
- ctx->cmd = 'l'; /* implicit linetos after a moveto */
+ ctx->cmd = 'l'; /* implicit linetos after a moveto */
}
break;
case 'l':
@@ -540,8 +540,8 @@ rsvg_parse_path_do_cmd (RSVGParsePathCtx * ctx, gboolean final)
sweep_flag,
x2, y2);
- ctx->cp.point.x = x2;
- ctx->cp.point.y = y2;
+ ctx->rp.point.x = ctx->cp.point.x = x2;
+ ctx->rp.point.y = ctx->cp.point.y = y2;
ctx->param = 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]