From 70fc728ceef4dcf45dd97dc9051ddb73ff734169 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 6 Dec 2021 19:36:37 +0100 Subject: 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 --- sc/source/core/tool/grouparealistener.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/source') 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 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)); } -- cgit