diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-02-01 14:14:30 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-02-01 14:16:07 +0200 |
commit | 385c207e3a0b2d946ff29a9003b36f81a8946c55 (patch) | |
tree | 3dbccc20dff6895d0fe4070e5d6656fce8f0b48e | |
parent | 2489000d3fd66319a8355fd4e37cfdfda47296d0 (diff) |
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
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx index 6e3100d0e6dc..c733a25bb567 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 ); |