summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-12-28 18:42:50 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-12-28 18:43:47 +0100
commit4df5fceade2ff3d70e2ceee2cb77c5f7cb4f8b80 (patch)
treed59fdfc3c9150725ac1385a54f2b982556d5a284 /drawinglayer
parent38c57836baeddd3276cdddd4b062f74210f470c2 (diff)
Fix The scope of the variable 'fReduceFactor' can be reduced
Change-Id: Ic885f5113ab1f83e493a3615b012724dc06f8970
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/tools/converters.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/tools/converters.cxx b/drawinglayer/source/tools/converters.cxx
index 33b1fe4acd7f..6e3493447c86 100644
--- a/drawinglayer/source/tools/converters.cxx
+++ b/drawinglayer/source/tools/converters.cxx
@@ -49,11 +49,11 @@ namespace drawinglayer
// get destination size in pixels
const MapMode aMapModePixel(MAP_PIXEL);
const sal_uInt32 nViewVisibleArea(nDiscreteWidth * nDiscreteHeight);
- double fReduceFactor(1.0);
drawinglayer::primitive2d::Primitive2DSequence aSequence(rSeq);
if(nViewVisibleArea > nMaxQuadratPixels)
{
+ double fReduceFactor(1.0);
// reduce render size
fReduceFactor = sqrt((double)nMaxQuadratPixels / (double)nViewVisibleArea);
nDiscreteWidth = basegfx::fround((double)nDiscreteWidth * fReduceFactor);