diff options
author | Radek Doulik <rodo@novell.com> | 2012-08-20 12:54:37 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2012-08-20 12:54:37 +0200 |
commit | b65b4160bfae737d3bc435f23d551bef65e02f81 (patch) | |
tree | 33b59fbd2b87c434c3728dac7eedd43ddaeb7c03 /canvas | |
parent | 8c482683edf6aee17d4718150158293461b88b3b (diff) |
fill whole polypolygon at once, so that fill rule is applied correctly
- fixes rest of n#759172
Change-Id: I6c2694bf8276337b7d1fa54a12867bfc2b658a23
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx index 924e6f8eb4c4..a7cf165f693d 100644 --- a/canvas/source/cairo/cairo_canvashelper.cxx +++ b/canvas/source/cairo/cairo_canvashelper.cxx @@ -1045,12 +1045,6 @@ namespace cairocanvas if( aPolygon.isClosed() ) cairo_close_path( pCairo ); - if( aOperation == Fill && pTextures ) - { - cairo_set_matrix( pCairo, &aOrigMatrix ); - doOperation( aOperation, pCairo, pTextures, pDevice, aPolyPolygon.getB2DRange() ); - cairo_set_matrix( pCairo, &aIdentityMatrix ); - } } else { @@ -1063,6 +1057,14 @@ namespace cairocanvas } } } + + if( aOperation == Fill && pTextures ) + { + cairo_set_matrix( pCairo, &aOrigMatrix ); + doOperation( aOperation, pCairo, pTextures, pDevice, aPolyPolygon.getB2DRange() ); + cairo_set_matrix( pCairo, &aIdentityMatrix ); + } + if( bOpToDo && ( aOperation != Fill || !pTextures ) ) doOperation( aOperation, pCairo, pTextures, pDevice, aPolyPolygon.getB2DRange() ); |