diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-19 15:17:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-20 08:04:35 +0200 |
commit | b225980d2d65694278c9ed89512fbe21b08febd6 (patch) | |
tree | acd7e008fdabbed097fd97f6c4ba8ddc366946bb /sc/source/ui/view/tabview5.cxx | |
parent | 6eefea359fe1e51adfd4a2002614013a7c060a33 (diff) |
use tools::Long in sc
Change-Id: I8f37a8d1174ed816df971b8cee036d4e88d4a7fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104526
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/tabview5.cxx')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index b5ed82510dba..73727a0f13d4 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -549,7 +549,7 @@ void ScTabView::MakeVisible( const tools::Rectangle& rHMMRect ) tools::Rectangle aRect = pWin->LogicToPixel( rHMMRect ); - long nScrollX=0, nScrollY=0; // pixel + tools::Long nScrollX=0, nScrollY=0; // pixel if ( aRect.Right() >= aWinSize.Width() ) // right out { @@ -582,12 +582,12 @@ void ScTabView::MakeVisible( const tools::Rectangle& rHMMRect ) SCCOL nPosX = aViewData.GetPosX(WhichH(eWhich)); SCROW nPosY = aViewData.GetPosY(WhichV(eWhich)); - long nLinesX=0, nLinesY=0; // columns/rows - scroll at least nScrollX/Y + tools::Long nLinesX=0, nLinesY=0; // columns/rows - scroll at least nScrollX/Y if (nScrollX > 0) while (nScrollX > 0 && nPosX < rDoc.MaxCol()) { - nScrollX -= static_cast<long>( rDoc.GetColWidth(nPosX, nTab) * nPPTX ); + nScrollX -= static_cast<tools::Long>( rDoc.GetColWidth(nPosX, nTab) * nPPTX ); ++nPosX; ++nLinesX; } @@ -595,14 +595,14 @@ void ScTabView::MakeVisible( const tools::Rectangle& rHMMRect ) while (nScrollX < 0 && nPosX > 0) { --nPosX; - nScrollX += static_cast<long>( rDoc.GetColWidth(nPosX, nTab) * nPPTX ); + nScrollX += static_cast<tools::Long>( rDoc.GetColWidth(nPosX, nTab) * nPPTX ); --nLinesX; } if (nScrollY > 0) while (nScrollY > 0 && nPosY < rDoc.MaxRow()) { - nScrollY -= static_cast<long>( rDoc.GetRowHeight(nPosY, nTab) * nPPTY ); + nScrollY -= static_cast<tools::Long>( rDoc.GetRowHeight(nPosY, nTab) * nPPTY ); ++nPosY; ++nLinesY; } @@ -610,7 +610,7 @@ void ScTabView::MakeVisible( const tools::Rectangle& rHMMRect ) while (nScrollY < 0 && nPosY > 0) { --nPosY; - nScrollY += static_cast<long>( rDoc.GetRowHeight(nPosY, nTab) * nPPTY ); + nScrollY += static_cast<tools::Long>( rDoc.GetRowHeight(nPosY, nTab) * nPPTY ); --nLinesY; } |