summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-02-02 19:53:16 +0100
committerJan Holesovsky <kendy@collabora.com>2017-02-03 15:23:04 +0100
commit27ca6387b7188d1805dda8906d809025a2d3fb95 (patch)
tree8a2ae84f6a6926e11c3fe9c77acdc19ebef3735b /sc
parentc6315e162ab7e44cd710df3d0d1d7af423bf48bc (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')
-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()