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/select.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/select.cxx')
-rw-r--r-- | sc/source/ui/view/select.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx index 464c550909d3..0ef0e2059b2b 100644 --- a/sc/source/ui/view/select.cxx +++ b/sc/source/ui/view/select.cxx @@ -502,10 +502,10 @@ bool ScViewFunctionSet::SetCursorAtCell( SCCOL nPosX, SCROW nPosY, bool bScroll { // direction (left or top) - long nSizeX = 0; + tools::Long nSizeX = 0; for (SCCOL i=nPosX+1; i<=nEndX; i++) nSizeX += rDoc.GetColWidth( i, nTab ); - long nSizeY = static_cast<long>(rDoc.GetRowHeight( nPosY+1, nEndY, nTab )); + tools::Long nSizeY = static_cast<tools::Long>(rDoc.GetRowHeight( nPosY+1, nEndY, nTab )); SCCOL nDelStartX = nStartX; SCROW nDelStartY = nStartY; @@ -550,7 +550,7 @@ bool ScViewFunctionSet::SetCursorAtCell( SCCOL nPosX, SCROW nPosY, bool bScroll bool bNegX = ( nPosX < nStartX ); bool bNegY = ( nPosY < nStartY ); - long nSizeX = 0; + tools::Long nSizeX = 0; if ( bNegX ) { // in SetCursorAtPoint hidden columns are skipped. @@ -563,7 +563,7 @@ bool ScViewFunctionSet::SetCursorAtCell( SCCOL nPosX, SCROW nPosY, bool bScroll for (SCCOL i=nEndX+1; i<=nPosX; i++) nSizeX += rDoc.GetColWidth( i, nTab ); - long nSizeY = 0; + tools::Long nSizeY = 0; if ( bNegY ) { // in SetCursorAtPoint hidden rows are skipped. |