[lasem] [SvgView] Fix viewbox to viewport coordinate transformation.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [lasem] [SvgView] Fix viewbox to viewport coordinate transformation.
- Date: Tue, 18 Aug 2009 08:44:09 +0000 (UTC)
commit db077f94002dbab8650ec6a966da7fdbb3718902
Author: Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
Date: Tue Aug 18 10:43:10 2009 +0200
[SvgView] Fix viewbox to viewport coordinate transformation.
Fix the rendering of svg/misc/marker.svg.
src/lsmsvgview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index e3e3926..6adbcfa 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -1416,10 +1416,10 @@ lsm_svg_view_viewbox_to_viewport (LsmSvgView *view, const LsmBox *viewport, cons
&x_offset, &y_offset, &x_scale, &y_scale);
if (x != NULL)
- *x = *x * x_scale - x_offset;
+ *x = *x * x_scale + x_offset;
if (y != NULL)
- *y = *y * y_scale - y_offset;
+ *y = *y * y_scale + y_offset;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]