summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-02-02 19:53:16 +0100
committerJan Holesovsky <kendy@collabora.com>2017-02-04 00:49:49 +0100
commit221e83653b5f7c409083b711fb9dd722770dd205 (patch)
treee9fc50ae692f582df8b7717d603c1b3e77733398 /sc/source
parent5df348a26aaf31ffd0a2e7f52d6d5cbdf1c5716d (diff)
sc tiled rendering: We keep increasing the precision here...
... so let's finally do it right, and count in double precision directly. Change-Id: Ic49cc42d9e61a1b9fa9853bfe93d2681a6be88b2
Diffstat (limited to 'sc/source')
-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 3b5e8485c2c2..0e175d17ebfe 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -519,9 +519,9 @@ void ScGlobal::Init()
void ScGlobal::InitPPT()
{
OutputDevice* pDev = Application::GetDefaultDevice();
- Point aPix1000 = pDev->LogicToPixel( Point(100000,100000), MapUnit::MapTwip );
- nScreenPPTX = aPix1000.X() / 100000.0;
- nScreenPPTY = aPix1000.Y() / 100000.0;
+
+ nScreenPPTX = double(pDev->GetDPIX()) / double(TWIPS_PER_INCH);
+ nScreenPPTY = double(pDev->GetDPIY()) / double(TWIPS_PER_INCH);
}
const OUString& ScGlobal::GetClipDocName()