summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/view/drawutil.cxx
diff options
context:
space:
mode:
authorMikhail Voytenko <mav@openoffice.org>2011-01-17 13:20:22 +0100
committerMikhail Voytenko <mav@openoffice.org>2011-01-17 13:20:22 +0100
commitcd42389ad67b403a07a0dda8e2a6e213def49251 (patch)
tree51e19c743788a549502b7c801c64e11142103310 /sc/source/ui/view/drawutil.cxx
parentremovetooltypes01: #i112600# remove tooltypes from chart2 (diff)
downloadcore-cd42389ad67b403a07a0dda8e2a6e213def49251.tar.gz
core-cd42389ad67b403a07a0dda8e2a6e213def49251.zip
removetooltypes01: #i112600# remove tooltypes from sc
Diffstat (limited to 'sc/source/ui/view/drawutil.cxx')
-rw-r--r--sc/source/ui/view/drawutil.cxx4
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);
}