summaryrefslogtreecommitdiffstats
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
parenttdf#158237 Use C++20 contains() instead of find() and end() (diff)
downloadcore-454da7750db671c1f82fec4706de9a44c29b3e2e.tar.gz
core-454da7750db671c1f82fec4706de9a44c29b3e2e.zip
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>
-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 );