From c12389d9ee68e0512676531b2e2e70eaf02e99f2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 3 Mar 2014 12:40:52 +0000 Subject: explicitly invalidate contained ImplListBoxWindow I've seen this a few times where on being Enabled/Disabled the list boxes don't redraw to their new state. I can reproduce this reliably now with the chart wizard and the "shape" listbox when toggling the 3d-look checkbox Change-Id: I7a67373f45baeb18763ac4f8027e48b0c039455d --- vcl/source/control/ilstbox.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vcl/source/control') diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index ae3a58f514a6..0c7aef3e91d4 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -2077,6 +2077,11 @@ void ImplListBoxWindow::StateChanged( StateChangedType nType ) ImplInitSettings( false, false, true ); Invalidate(); } + else if( nType == STATE_CHANGE_ENABLE ) + { + Invalidate(); + } + ImplClearLayoutData(); } @@ -2426,6 +2431,8 @@ void ImplListBox::StateChanged( StateChangedType nType ) mpHScrollBar->Enable( IsEnabled() ); mpVScrollBar->Enable( IsEnabled() ); mpScrollBarBox->Enable( IsEnabled() ); + maLBWindow.Enable( IsEnabled() ); + Invalidate(); } else if ( nType == STATE_CHANGE_ZOOM ) -- cgit