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 16:50:50 +0100
commit30d04756881ec60f80173387a836ae74874f7b54 (patch)
tree70d459df7672e49a5e3d77b545d02d7ad77b8f70
parent99d697c526742082352312652cd31d6b192a0ac7 (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 (cherry picked from commit cce7d78baa91ab348e85407ada8387c9c89176cb)
-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 8303770a7850..484685712ef4 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -544,9 +544,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;
}
}