Kaydet (Commit) 30d04756 authored tarafından Miklos Vajna's avatar Miklos Vajna

ScGlobal::UpdatePPT: make conversion more precise

Old situation was (96 DPI, 100% zoom): 0.06669 factor, 1088 pixels,
result is 16311 twips (1087.4 pixels).

New situation is: 0.066669 factor, 1088 pixels, result is 16319 twips
(1087.93 pixels).

Change-Id: I0ff11520fd719aefd2b351a6d4ef949d66b66282
(cherry picked from commit cce7d78b)
üst 99d697c5
...@@ -544,9 +544,9 @@ void ScGlobal::UpdatePPT( OutputDevice* pDev ) ...@@ -544,9 +544,9 @@ void ScGlobal::UpdatePPT( OutputDevice* pDev )
if ( !pDev ) if ( !pDev )
pDev = Application::GetDefaultDevice(); pDev = Application::GetDefaultDevice();
Point aPix1000 = pDev->LogicToPixel( Point(10000,10000), MAP_TWIP ); Point aPix1000 = pDev->LogicToPixel( Point(100000,100000), MAP_TWIP );
nScreenPPTX = aPix1000.X() / 10000.0; nScreenPPTX = aPix1000.X() / 100000.0;
nScreenPPTY = aPix1000.Y() / 10000.0; nScreenPPTY = aPix1000.Y() / 100000.0;
nPPTZoom = nCurrentZoom; nPPTZoom = nCurrentZoom;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment