[Libreoffice-commits] core.git: canvas/source
Tor Lillqvist
tml at collabora.com
Wed Feb 1 12:17:11 UTC 2017
canvas/source/cairo/cairo_canvashelper.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 385c207e3a0b2d946ff29a9003b36f81a8946c55
Author: Tor Lillqvist <tml at collabora.com>
Date: Wed Feb 1 14:14:30 2017 +0200
tdf#105620: Probably better to not ignore initial x0 and y0
So add to them instead of just assigning. In the bugdoc the initial
values were zero, but maybe in some other cases they aren't.
Change-Id: I3d399fe4aab9260817f171d4e69388a19eb85d21
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index 6e3100d..c733a25 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -798,8 +798,8 @@ namespace cairocanvas
double x1, y1, x2, y2;
cairo_path_extents(pCairo, &x1, &y1, &x2, &y2);
- aScaledTextureMatrix.x0 = -(x1 * aScaledTextureMatrix.xx);
- aScaledTextureMatrix.y0 = -(y1 * aScaledTextureMatrix.yy);
+ aScaledTextureMatrix.x0 -= (x1 * aScaledTextureMatrix.xx);
+ aScaledTextureMatrix.y0 -= (y1 * aScaledTextureMatrix.yy);
cairo_pattern_set_matrix( pPattern, &aScaledTextureMatrix );
More information about the Libreoffice-commits
mailing list