diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-07-16 23:09:35 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-07-16 23:09:35 +0200 |
commit | 5cfd4e920023ecb6caa9061bc0a52ea03def83c6 (patch) | |
tree | 0eb061f3c0bb50f98f157b95a7a3b98cf7ae90f5 /canvas | |
parent | 00ae1cec08ae970f0640c0cc5d612eb0b9035207 (diff) |
Reduce scope
Change-Id: Ifbfd8e4b7a549d0225229a60a12b1b346fc02828
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/canvashelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/vcl/canvashelper.cxx b/canvas/source/vcl/canvashelper.cxx index fde6ebe2d271..8b025e0cd895 100644 --- a/canvas/source/vcl/canvashelper.cxx +++ b/canvas/source/vcl/canvashelper.cxx @@ -483,7 +483,6 @@ namespace vclcanvas tools::OutDevStateKeeper aStateKeeper( mpProtectedOutDev ); const int nTransparency( setupOutDevState( viewState, renderState, FILL_COLOR ) ); - const int nTransPercent( (nTransparency * 100 + 128) / 255 ); // normal rounding, no truncation here ::basegfx::B2DPolyPolygon aB2DPolyPoly( ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon)); aB2DPolyPoly.setClosed(true); // ensure closed poly, otherwise VCL does not fill @@ -497,6 +496,7 @@ namespace vclcanvas } else { + const int nTransPercent( (nTransparency * 100 + 128) / 255 ); // normal rounding, no truncation here mpOutDev->getOutDev().DrawTransparent( aPolyPoly, (sal_uInt16)nTransPercent ); } |