sc/source/ui/view/tabcont.cxx |   32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

New commits:
commit 3e2feb8d3ff8e5fcfcee70e32e75483840eb8788
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Thu Oct 17 10:41:05 2024 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Mon Oct 28 08:45:57 2024 +0100

    Reduce indentation
    
    Change-Id: Ibae17ff121e9b8400af080fc1fe0099b8c34470e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175074
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx
index 09507f258d69..d6ba1e499a66 100644
--- a/sc/source/ui/view/tabcont.cxx
+++ b/sc/source/ui/view/tabcont.cxx
@@ -55,24 +55,24 @@ ScTabControl::ScTabControl( vcl::Window* pParent, 
ScViewData* pData )
     SCTAB nCount = rDoc.GetTableCount();
     for (SCTAB i=0; i<nCount; i++)
     {
-        if (rDoc.IsVisible(i))
-        {
-            if (rDoc.GetName(i,aString))
-            {
-                if ( rDoc.IsScenario(i) )
-                    InsertPage( static_cast<sal_uInt16>(i)+1, aString, 
TabBarPageBits::Blue);
-                else
-                    InsertPage( static_cast<sal_uInt16>(i)+1, aString );
+        if (!rDoc.IsVisible(i))
+            continue;
 
-                if ( rDoc.IsTabProtected(i) )
-                    SetProtectionSymbol(static_cast<sal_uInt16>(i)+1, true);
+        if (!rDoc.GetName(i,aString))
+            continue;
 
-                if ( !rDoc.IsDefaultTabBgColor(i) )
-                {
-                    aTabBgColor = rDoc.GetTabBgColor(i);
-                    SetTabBgColor( static_cast<sal_uInt16>(i)+1, aTabBgColor );
-                }
-            }
+        if ( rDoc.IsScenario(i) )
+            InsertPage( static_cast<sal_uInt16>(i)+1, aString, 
TabBarPageBits::Blue);
+        else
+            InsertPage( static_cast<sal_uInt16>(i)+1, aString );
+
+        if ( rDoc.IsTabProtected(i) )
+            SetProtectionSymbol(static_cast<sal_uInt16>(i)+1, true);
+
+        if ( !rDoc.IsDefaultTabBgColor(i) )
+        {
+            aTabBgColor = rDoc.GetTabBgColor(i);
+            SetTabBgColor( static_cast<sal_uInt16>(i)+1, aTabBgColor );
         }
     }
 

Reply via email to