add .5 to control points coordinates after transformation

- otherwise we might end up with wrong coordinates
 - fixes fdo#38580
This commit is contained in:
Radek Doulik
2012-04-12 10:07:03 +02:00
parent 030c4269cb
commit f0a5e147eb

View File

@@ -1024,6 +1024,9 @@ namespace cairocanvas
nBX = aB.getX();
nBY = aB.getY();
cairo_matrix_transform_point( &aOrigMatrix, &nAX, &nAY );
cairo_matrix_transform_point( &aOrigMatrix, &nBX, &nBY );
if( aOperation == Stroke )
{
nAX += 0.5;
@@ -1031,8 +1034,7 @@ namespace cairocanvas
nBX += 0.5;
nBY += 0.5;
}
cairo_matrix_transform_point( &aOrigMatrix, &nAX, &nAY );
cairo_matrix_transform_point( &aOrigMatrix, &nBX, &nBY );
cairo_curve_to( pCairo, nAX, nAY, nBX, nBY, nX, nY );
}
else