1. mst
  2. ooo340

Commits

Niklas Nebel  committed 5c023aa

calc69: #i118068# handle all-hidden case in ScDrawUtil::CalcScale

  • Participants
  • Parent commits 1c6c8de
  • Branches default

Comments (0)

Files changed (1)

File sc/source/ui/view/drawutil.cxx

View file
  • Ignore whitespace
 
     // #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 );