diff options
Diffstat (limited to 'sc/source/ui/view/drawutil.cxx')
-rw-r--r-- | sc/source/ui/view/drawutil.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/drawutil.cxx b/sc/source/ui/view/drawutil.cxx index ba250767c169..a5a4a7ee1c1d 100644 --- a/sc/source/ui/view/drawutil.cxx +++ b/sc/source/ui/view/drawutil.cxx @@ -62,7 +62,7 @@ void ScDrawUtil::CalcScale( ScDocument* pDoc, SCTAB nTab, long nTwipsY = 0; for (SCCOL i=nStartCol; i<nEndCol; i++) { - USHORT nWidth = pDoc->GetColWidth(i,nTab); + sal_uInt16 nWidth = pDoc->GetColWidth(i,nTab); nTwipsX += (long) nWidth; nPixelX += ScViewData::ToPixel( nWidth, nPPTX ); } @@ -76,7 +76,7 @@ void ScDrawUtil::CalcScale( ScDocument* pDoc, SCTAB nTab, continue; } - USHORT nHeight = pDoc->GetRowHeight(nRow, nTab); + sal_uInt16 nHeight = pDoc->GetRowHeight(nRow, nTab); nTwipsY += static_cast<long>(nHeight); nPixelY += ScViewData::ToPixel(nHeight, nPPTY); } |