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
This commit is contained in:
parent
2489000d3f
commit
385c207e3a
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user