diff options
author | Eike Rathke <erack@redhat.com> | 2011-11-25 00:04:53 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-06-11 12:00:11 +0200 |
commit | 51980fc809da7a4b6fdfa4a4102c3f269c4d1039 (patch) | |
tree | 19ca7e99c1ed402601fbe0723ea9b55464aa1359 | |
parent | a6ae36d10d08161d81a3d3f8593d8d543daaef13 (diff) |
Revert "calc69: #i118068# handle all-hidden case in ScDrawUtil::CalcScale"
This reverts commit 8a838b9fbf46ece9680824cd3a044ab7338bf306.
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
-rw-r--r-- | sc/source/ui/view/drawutil.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sc/source/ui/view/drawutil.cxx b/sc/source/ui/view/drawutil.cxx index bebde55338a7..c4112ae65d42 100644 --- a/sc/source/ui/view/drawutil.cxx +++ b/sc/source/ui/view/drawutil.cxx @@ -80,18 +80,6 @@ void ScDrawUtil::CalcScale( ScDocument* pDoc, SCTAB nTab, nPixelY += ScViewData::ToPixel(nHeight, nPPTY); } - // #i116848# To get a large-enough number for PixelToLogic, multiply the integer values - // instead of using a larger number of rows - if ( nTwipsY ) - { - long nMultiply = 2000000 / nTwipsY; - if ( nMultiply > 1 ) - { - nTwipsY *= nMultiply; - nPixelY *= nMultiply; - } - } - MapMode aHMMMode( MAP_100TH_MM, Point(), rZoomX, rZoomY ); Point aPixelLog = pDev->PixelToLogic( Point( nPixelX,nPixelY ), aHMMMode ); |