diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-02-07 18:15:20 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-02-10 17:31:36 +0100 |
commit | 8232965cfb5f50bb2e01f7749d04c227a9622860 (patch) | |
tree | 9d1d73ef4d9c4b740776ab46cdf5b6a09590bdcc /sc/source/ui/view/viewfun5.cxx | |
parent | 1db6e8b7760de1abd49d62df230d89480ffd2161 (diff) |
replace various sal_uLong that might overflow with huge sheets
16Mx16k cells is more than 32bit, so things like cell counts
or progress -> sal_uInt64. Height/widths of complete rows/columns
-> tools::Long.
Change-Id: I8077ec0c97782310db024c20c335cfcbc3833227
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129634
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/source/ui/view/viewfun5.cxx')
-rw-r--r-- | sc/source/ui/view/viewfun5.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun5.cxx b/sc/source/ui/view/viewfun5.cxx index ac61b30f593b..1ca4c7ba7809 100644 --- a/sc/source/ui/view/viewfun5.cxx +++ b/sc/source/ui/view/viewfun5.cxx @@ -99,7 +99,7 @@ bool ScViewFunc::PasteDataFormat( SotClipboardFormatId nFormatId, nXT += rDoc.GetColWidth(i,nTab); if (rDoc.IsNegativePage(nTab)) nXT = -nXT; - sal_uLong nYT = rDoc.GetRowHeight( 0, nPosY-1, nTab); + tools::Long nYT = rDoc.GetRowHeight( 0, nPosY-1, nTab); aPos = Point(o3tl::convert(nXT, o3tl::Length::twip, o3tl::Length::mm100), o3tl::convert(nYT, o3tl::Length::twip, o3tl::Length::mm100)); } |