summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-05-24 14:47:41 +0100
committerNoel Power <noel.power@novell.com>2012-05-25 11:34:05 +0100
commita11fa1a4ac7ab27328b5e5376ea7597b1e69ddd1 (patch)
treeda32625a71ed6da17eceb1349962219fb488985e
parent2b2bdcf84fc1ea41c4d9e69d53ba9f1177da9bdd (diff)
Revert "calc69: #i118068# handle all-hidden case in ScDrawUtil::CalcScale"
-rw-r--r--sc/source/ui/view/drawutil.cxx12
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 );