diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-12-06 19:36:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-12-06 21:46:08 +0100 |
commit | 70fc728ceef4dcf45dd97dc9051ddb73ff734169 (patch) | |
tree | 5e60b0365a835e0e51515e91af6f036bc3fa0efa /sc/source | |
parent | 8bc85cd8a6a9a879c143d8defacc45967a0ac99e (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/tool/grouparealistener.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |