This is an automated email from the ASF dual-hosted git repository. mseidel pushed a commit to branch AOO42X in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO42X by this push: new e23fcfd800 Re-add bRet because it is tested in main/sal/qa/osl/mutex/osl_Mutex.cxx e23fcfd800 is described below commit e23fcfd8003e709cddeadf36aa91f3dd0cb01b9f Author: mseidel <msei...@apache.org> AuthorDate: Tue Dec 10 22:02:32 2024 +0100 Re-add bRet because it is tested in main/sal/qa/osl/mutex/osl_Mutex.cxx (cherry picked from commit b76941e0b6fbb18cf07641d92c4fb820221ff80c) --- main/sw/source/core/view/pagepreviewlayout.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/sw/source/core/view/pagepreviewlayout.cxx b/main/sw/source/core/view/pagepreviewlayout.cxx index 0fbc505bda..6522cf8802 100644 --- a/main/sw/source/core/view/pagepreviewlayout.cxx +++ b/main/sw/source/core/view/pagepreviewlayout.cxx @@ -721,6 +721,7 @@ bool SwPagePreviewLayout::SetBookPreviewMode( const bool _bEnableBookPreview, sal_uInt16& _onStartPageNum, Rectangle& _orDocPreviewPaintRect ) { + bool bRet = false; if ( mbBookPreview != _bEnableBookPreview) { mbBookPreview = _bEnableBookPreview; @@ -743,10 +744,10 @@ bool SwPagePreviewLayout::SetBookPreviewMode( const bool _bEnableBookPreview, mbBookPreviewModeToggled = false; } - return true; + bRet = true; } - return false; + return bRet; } // =============================================================================