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

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Wed Dec 6 11:27:25 UTC 2017


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

New commits:
commit db5466887810f428f2df4bfc101afe76a928222a
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Tue Dec 5 16:15:18 2017 +0100

    Fix indentation
    
    Change-Id: I53a967ab6ad5a6ed89dc807120dd1db540b26a92
    Reviewed-on: https://gerrit.libreoffice.org/45894
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx
index e5387497133d..13a69b257523 100644
--- a/sw/source/uibase/uiview/viewstat.cxx
+++ b/sw/source/uibase/uiview/viewstat.cxx
@@ -77,31 +77,31 @@ void SwView::GetState(SfxItemSet &rSet)
     {
         switch(nWhich)
         {
-        case FN_NAV_ELEMENT:
-            // used to update all instances of this control
-            rSet.InvalidateItem( nWhich );
-        break;
-        case FN_EDIT_LINK_DLG:
-            if( m_pWrtShell->GetLinkManager().GetLinks().empty() )
-                rSet.DisableItem(nWhich);
-            else if( m_pWrtShell->IsSelFrameMode() &&
-                m_pWrtShell->IsSelObjProtected(FlyProtectFlags::Content) != FlyProtectFlags::NONE)
-            {
-                rSet.DisableItem(nWhich);
-            }
+            case FN_NAV_ELEMENT:
+                // used to update all instances of this control
+                rSet.InvalidateItem( nWhich );
             break;
+            case FN_EDIT_LINK_DLG:
+                if( m_pWrtShell->GetLinkManager().GetLinks().empty() )
+                    rSet.DisableItem(nWhich);
+                else if( m_pWrtShell->IsSelFrameMode() &&
+                    m_pWrtShell->IsSelObjProtected(FlyProtectFlags::Content) != FlyProtectFlags::NONE)
+                {
+                    rSet.DisableItem(nWhich);
+                }
+                break;
 
-        case SID_DRAWTBX_LINES:
-            if ( bWeb )
-                rSet.DisableItem(nWhich);
-            break;
+            case SID_DRAWTBX_LINES:
+                if ( bWeb )
+                    rSet.DisableItem(nWhich);
+                break;
 
-        case SID_INSERT_GRAPHIC:
-            if( m_pWrtShell->CursorInsideInputField() )
-            {
-                rSet.DisableItem(nWhich);
-            }
-            break;
+            case SID_INSERT_GRAPHIC:
+                if( m_pWrtShell->CursorInsideInputField() )
+                {
+                    rSet.DisableItem(nWhich);
+                }
+                break;
 
             case FN_INSERT_CAPTION:
                 {


More information about the Libreoffice-commits mailing list