summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-29 13:21:33 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-29 15:23:06 +0100
commit454da7750db671c1f82fec4706de9a44c29b3e2e (patch)
tree3088f57db1cbb14126f6c8ed130975b7a1667ca1 /sc/source
parent6c358c28c5cc2d1d8d8bb9d1238e3546a9bf3ce8 (diff)
cid#67704 Integer-overflow
Change-Id: I42aa4b3e43636bf6f0c0f77c5028501229badee2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165545 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/filter/rtf/eeimpars.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx
index 6e588ffdc30d..38f3f73e89aa 100644
--- a/sc/source/filter/rtf/eeimpars.cxx
+++ b/sc/source/filter/rtf/eeimpars.cxx
@@ -309,7 +309,7 @@ void ScEEImport::WriteToDocument( bool bSizeColsRows, double nOutputFactor, SvNu
ScMF::Hor );
if ( pE->nRowOverlap > 1 )
{
- nRO = nRow + pE->nRowOverlap - 1;
+ nRO = nRow + (pE->nRowOverlap - 1);
mpDoc->ApplyFlagsTab( nCol, nRow+1,
nCol, nRO , nTab,
ScMF::Ver );