summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-11-09 19:44:12 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-11-11 18:22:26 +0100
commit98d80106a37399f6d2eca990fd3fd5412fc87fc2 (patch)
treec06841f5be1b63a120b11ee94b07daf308c7c6d4 /sc/source
parent4d551b7234ebb02b8b1a837966b30990e18f0c0b (diff)
cid#1607376 Overflowed constant
Change-Id: Ib02923e0c40e97fa7a22c7f68079df48baf3fcb9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176382 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/dbgui/scuiasciiopt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx
index 37a81c077053..b35cf24ba7fb 100644
--- a/sc/source/ui/dbgui/scuiasciiopt.cxx
+++ b/sc/source/ui/dbgui/scuiasciiopt.cxx
@@ -630,7 +630,7 @@ bool ScImportAsciiDlg::GetLine( sal_uLong nLine, OUString &rText, sal_Unicode& r
mnStreamPos = mpDatStream->Tell();
mpRowPosArray[++mnRowPosCount] = mnStreamPos;
} while (nLine >= mnRowPosCount && mpDatStream->good());
- if (mpDatStream->eof() &&
+ if (mpDatStream->eof() && mnRowPosCount &&
mnStreamPos == mpRowPosArray[mnRowPosCount-1])
{
// the very end, not even an empty line read