diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-03 17:05:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-03 17:05:48 +0100 |
commit | 8c8d7ef3d8e7fbeee459089374b76248119d17b3 (patch) | |
tree | 7ccf5eb6d66472c7ebb61dfbf36dd85b3d2bfaea | |
parent | 42bffebf0bdacf30095349c06adbf186542917d5 (diff) |
Revert "sc tiled rendering: We keep increasing the precision here..."
This reverts commit 27ca6387b7188d1805dda8906d809025a2d3fb95, at least together
with f7962f59ea0b2a8f7c2d6c015e1c02855e1008fe "sc rowlimit: Make the cursor
better fit the rendering" it makes CppunitTest_desktop_lib fail.
-rw-r--r-- | sc/source/core/data/global.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx index 0e175d17ebfe..3b5e8485c2c2 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(); - - nScreenPPTX = double(pDev->GetDPIX()) / double(TWIPS_PER_INCH); - nScreenPPTY = double(pDev->GetDPIY()) / double(TWIPS_PER_INCH); + Point aPix1000 = pDev->LogicToPixel( Point(100000,100000), MapUnit::MapTwip ); + nScreenPPTX = aPix1000.X() / 100000.0; + nScreenPPTY = aPix1000.Y() / 100000.0; } const OUString& ScGlobal::GetClipDocName() |