summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-02-02 19:53:16 +0100
committerAndras Timar <andras.timar@collabora.com>2017-02-18 01:05:09 +0100
commit02a2cb8f3b0a0c1a85248a2fa6dd16f801b5957f (patch)
tree8c5142cf2f10d8b2ecd07e900cdc53bb2cb309d5 /sc/source
parent1951d7b2961fc8b48c17a9a30d7c2489857e4dc7 (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 (cherry picked from commit 27ca6387b7188d1805dda8906d809025a2d3fb95)
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 68d1d83937a9..b16a656981ab 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -529,9 +529,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()