sc/source/filter/rtf/eeimpars.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 454da7750db671c1f82fec4706de9a44c29b3e2e
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Fri Mar 29 13:21:33 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Mar 29 15:23:06 2024 +0100

    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.mcnam...@collabora.com>

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 );

Reply via email to