vcl/source/control/tabctrl.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
New commits: commit 67a25eb13f5a2b6a9efeb4af80c7288b07cd33e0 Author: Christopher Sherlock <chris.sherloc...@gmail.com> AuthorDate: Thu Dec 26 15:12:19 2024 +1100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Tue Feb 18 09:27:59 2025 +0100 vcl: flatten TabControl::ImplInitSettings() Change-Id: I3ca648e45e6d0c22cc195abc3a6a2a858dbae38e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179449 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Tested-by: Jenkins diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 6e15a658fe88..e2c06a1dcbec 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -165,18 +165,18 @@ void TabControl::ImplInitSettings( bool bBackground ) SetPaintTransparent( true ); SetBackground(); ImplGetWindowImpl()->mbUseNativeFocus = ImplGetSVData()->maNWFData.mbNoFocusRects; - } - 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() ); } TabControl::TabControl( vcl::Window* pParent, WinBits nStyle ) :