summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-03 14:34:58 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-03 15:39:54 +0100
commitcce7d78baa91ab348e85407ada8387c9c89176cb (patch)
treeeb0aa9d3837a2a8730c45c13d09fa8f8fcb878cc
parent250574fd1ade12030945718022e342e786952827 (diff)
ScGlobal::UpdatePPT: make conversion more precise
Old situation was (96 DPI, 100% zoom): 0.06669 factor, 1088 pixels, result is 16311 twips (1087.4 pixels). New situation is: 0.066669 factor, 1088 pixels, result is 16319 twips (1087.93 pixels). Change-Id: I0ff11520fd719aefd2b351a6d4ef949d66b66282
-rw-r--r--sc/source/core/data/global.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index c97c02670045..1cd32b33ef1e 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -545,9 +545,9 @@ void ScGlobal::UpdatePPT( OutputDevice* pDev )
if ( !pDev )
pDev = Application::GetDefaultDevice();
- Point aPix1000 = pDev->LogicToPixel( Point(10000,10000), MAP_TWIP );
- nScreenPPTX = aPix1000.X() / 10000.0;
- nScreenPPTY = aPix1000.Y() / 10000.0;
+ Point aPix1000 = pDev->LogicToPixel( Point(100000,100000), MAP_TWIP );
+ nScreenPPTX = aPix1000.X() / 100000.0;
+ nScreenPPTY = aPix1000.Y() / 100000.0;
nPPTZoom = nCurrentZoom;
}
}