diff options
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx index c04ac9308e3c..b75efda876fc 100644 --- a/canvas/source/cairo/cairo_canvashelper.cxx +++ b/canvas/source/cairo/cairo_canvashelper.cxx @@ -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 |