[Libreoffice-commits] .: drawinglayer/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 28 09:45:22 PST 2012
drawinglayer/source/tools/converters.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4df5fceade2ff3d70e2ceee2cb77c5f7cb4f8b80
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Dec 28 18:42:50 2012 +0100
Fix The scope of the variable 'fReduceFactor' can be reduced
Change-Id: Ic885f5113ab1f83e493a3615b012724dc06f8970
diff --git a/drawinglayer/source/tools/converters.cxx b/drawinglayer/source/tools/converters.cxx
index 33b1fe4..6e34934 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);
More information about the Libreoffice-commits
mailing list