diff options
author | Michael Stahl <mst@apache.org> | 2011-09-17 21:45:00 +0000 |
---|---|---|
committer | Michael Stahl <mst@apache.org> | 2011-09-17 21:45:00 +0000 |
commit | 71232d3eb2cdb728b49d87a8ce97657f37589c1b (patch) | |
tree | c26314d11ba0a54912464c84981d803c2c1452b8 /sc | |
parent | e12542336aa13910c82db7db4d73b64781c1934b (diff) |
calc69: #i118068# handle all-hidden case in ScDrawUtil::CalcScale
# HG changeset patch
# User Niklas Nebel <nn@openoffice.org>
# Date 1306155759 -7200
# Node ID 5c023aa1cc35c5a974984ff25bcea557f4aa7d2c
# Parent 1c6c8dec2313416c6de595eb2cfac3e98250fea6
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/drawutil.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/ui/view/drawutil.cxx b/sc/source/ui/view/drawutil.cxx index 89287a93e14b..f76a9bd0ae17 100644 --- a/sc/source/ui/view/drawutil.cxx +++ b/sc/source/ui/view/drawutil.cxx @@ -83,11 +83,14 @@ void ScDrawUtil::CalcScale( ScDocument* pDoc, SCTAB nTab, // #i116848# To get a large-enough number for PixelToLogic, multiply the integer values // instead of using a larger number of rows - long nMultiply = 2000000 / nTwipsY; - if ( nMultiply > 1 ) + if ( nTwipsY ) { - nTwipsY *= nMultiply; - nPixelY *= nMultiply; + long nMultiply = 2000000 / nTwipsY; + if ( nMultiply > 1 ) + { + nTwipsY *= nMultiply; + nPixelY *= nMultiply; + } } MapMode aHMMMode( MAP_100TH_MM, Point(), rZoomX, rZoomY ); |