This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
     new b76941e0b6 Re-add bRet because it is tested in 
main/sal/qa/osl/mutex/osl_Mutex.cxx
b76941e0b6 is described below

commit b76941e0b6fbb18cf07641d92c4fb820221ff80c
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
---
 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;
 }
 
 // 
=============================================================================

Reply via email to