diff options
Diffstat (limited to 'sc')
-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 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() |