vcl/source/control/slider.cxx |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 56390eefb11558d2c24f0e820fedc808361c6f7f
Author:     Christopher Sherlock <chris.sherloc...@gmail.com>
AuthorDate: Tue Dec 24 23:28:30 2024 +1100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Tue Feb 18 09:45:55 2025 +0100

    vcl: flatten Slider:ImplInitSettings()
    
    Change-Id: I8ca52cc3efc80084c0a30e554437dac5ddee925e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179327
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index b90a19dc5721..849816e55d50 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -76,18 +76,18 @@ void Slider::ImplInitSettings()
         SetParentClipMode( ParentClipMode::NoClip );
         SetPaintTransparent( true );
         SetBackground();
-    }
-    else
-    {
-        EnableChildTransparentMode( false );
-        SetParentClipMode();
-        SetPaintTransparent( false );
 
-        if ( IsControlBackground() )
-            SetBackground( GetControlBackground() );
-        else
-            SetBackground( pParent->GetBackground() );
+        return;
     }
+
+    EnableChildTransparentMode( false );
+    SetParentClipMode();
+    SetPaintTransparent( false );
+
+    if ( IsControlBackground() )
+        SetBackground( GetControlBackground() );
+    else
+        SetBackground( pParent->GetBackground() );
 }
 
 void Slider::ImplUpdateRects( bool bUpdate )

Reply via email to