summaryrefslogtreecommitdiff
path: root/vcl/source/control/listbox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/listbox.cxx')
-rw-r--r--vcl/source/control/listbox.cxx14
1 files changed, 3 insertions, 11 deletions
diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx
index 2de9f387011a..541727541abe 100644
--- a/vcl/source/control/listbox.cxx
+++ b/vcl/source/control/listbox.cxx
@@ -780,17 +780,9 @@ void ListBox::StateChanged( StateChangedType nType )
mpImplLB->SetControlBackground( GetControlBackground() );
if ( mpImplWin )
{
- if ( mpImplWin->IsNativeControlSupported(ControlType::Listbox, ControlPart::Entire) )
- {
- // Transparent background
- mpImplWin->SetBackground();
- mpImplWin->SetControlBackground();
- }
- else
- {
- mpImplWin->SetBackground( mpImplLB->GetMainWindow()->GetControlBackground() );
- mpImplWin->SetControlBackground( mpImplLB->GetMainWindow()->GetControlBackground() );
- }
+
+ mpImplWin->SetBackground( GetControlBackground() );
+ mpImplWin->SetControlBackground( GetControlBackground() );
mpImplWin->SetFont( mpImplLB->GetMainWindow()->GetFont() );
mpImplWin->Invalidate();
}