sw/source/core/layout/layact.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 66e59cd1a988d2c8aa4c81b4183269e2f56e9b9f Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Aug 7 13:10:38 2024 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Aug 7 14:33:08 2024 +0200 sw: fix typo in SwLayAction::InternalAction() Went wrong in commit d491791dad8c3a946dac8c4dfd28ef0c4cb65ce5 (Fix infinite loop in sw_ooxmlexport17 unit test on macOS Intel, 2022-12-13). Change-Id: I4e35702e69016c854d7a17d64c71f07be8d09705 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171588 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx index a7933214f5c7..f63555890f06 100644 --- a/sw/source/core/layout/layact.cxx +++ b/sw/source/core/layout/layact.cxx @@ -503,14 +503,14 @@ void SwLayAction::InternalAction(OutputDevice* pRenderContext) }; int nOuterLoopControlRuns = 0; - const int nOutermoopControlMax = 10000; + const int nOuterLoopControlMax = 10000; while ( (pPage && !IsInterrupt()) || m_nCheckPageNum != USHRT_MAX ) { // Fix infinite loop in sw_ooxmlexport17 unit test // When running the sw_ooxmlexport17 unit test on slower macOS Intel // machines, This loop will never end even after 1M+ loops so set a // maximum number of loops like is done in the nested while loops. - if (++nOuterLoopControlRuns > nOutermoopControlMax) + if (++nOuterLoopControlRuns > nOuterLoopControlMax) { SAL_WARN("sw", "SwLayAction::InternalAction has run too many loops"); m_bInterrupt = true;