sc/source/core/tool/grouparealistener.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 70fc728ceef4dcf45dd97dc9051ddb73ff734169
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Mon Dec 6 19:36:37 2021 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Mon Dec 6 21:46:08 2021 +0100

    signed-integer-overflow
    
    ...after 8406139062d9ffe1daed32aefe4e261c6c55d63e "process broadcasts for
    adjacent cells together (tdf#119083)" during CppunitTest_sc_bugfix_test,
    
    > sc/source/core/tool/grouparealistener.cxx:340:72: runtime error: signed 
integer overflow: 2147483647 + 1 cannot be represented in type 'int'
    
    Change-Id: Ica29fc4c204cd6fd5c52c61271ebfcc9691f7f6f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126458
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sc/source/core/tool/grouparealistener.cxx 
b/sc/source/core/tool/grouparealistener.cxx
index 86ebb8b27b42..4c92475d9a3f 100644
--- a/sc/source/core/tool/grouparealistener.cxx
+++ b/sc/source/core/tool/grouparealistener.cxx
@@ -337,7 +337,7 @@ void FormulaGroupAreaListener::notifyCellChange( const 
SfxHint& rHint, const ScA
 {
     // Determine which formula cells within the group need to be notified of 
this change.
     std::vector<ScFormulaCell*> aCells;
-    collectFormulaCells(rPos.Tab(), rPos.Col(), rPos.Row(), rPos.Row() + 
nNumRows - 1, aCells);
+    collectFormulaCells(rPos.Tab(), rPos.Col(), rPos.Row(), rPos.Row() + 
(nNumRows - 1), aCells);
     std::for_each(aCells.begin(), aCells.end(), Notifier(rHint));
 }
 

Reply via email to