[Libreoffice-commits] core.git: sw/source

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 19 19:53:20 UTC 2021


 sw/source/uibase/uiview/viewstat.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 323b26e119672f1468fbdcbb7c2578465e562094
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Jul 19 15:02:20 2021 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Jul 19 21:52:45 2021 +0200

    sw: fix indentation for better readibility
    
    After 9a8c8053b4fb322edb1e45b891307cdad1f3d41f
    < Resolves tdf#113171 - Text box must not toggle command >
    
    Change-Id: I867a012f18634ee8f83bfa2899f97eec1fae4630
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119202
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx
index f21772ffe28d..22e8d9451efa 100644
--- a/sw/source/uibase/uiview/viewstat.cxx
+++ b/sw/source/uibase/uiview/viewstat.cxx
@@ -602,8 +602,8 @@ void SwView::GetDrawState(SfxItemSet &rSet)
             if ( bWeb )
                 rSet.DisableItem( nWhich );
             else
-            if (nWhich != SID_DRAW_TEXT) //tdf#113171
-                rSet.Put( SfxBoolItem( nWhich, m_nDrawSfxId == nWhich ) );
+                if (nWhich != SID_DRAW_TEXT) //tdf#113171
+                    rSet.Put( SfxBoolItem( nWhich, m_nDrawSfxId == nWhich ) );
             break;
 
         case SID_DRAW_TEXT_VERTICAL:
@@ -611,8 +611,8 @@ void SwView::GetDrawState(SfxItemSet &rSet)
             if ( bWeb || !SvtLanguageOptions().IsVerticalTextEnabled() )
                 rSet.DisableItem( nWhich );
             else
-            if (nWhich != SID_DRAW_TEXT_VERTICAL) //tdf#113171
-                rSet.Put( SfxBoolItem( nWhich, m_nDrawSfxId == nWhich ) );
+                if (nWhich != SID_DRAW_TEXT_VERTICAL) //tdf#113171
+                    rSet.Put( SfxBoolItem( nWhich, m_nDrawSfxId == nWhich ) );
             break;
 
         case SID_DRAW_TEXT_MARQUEE:


More information about the Libreoffice-commits mailing list