summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-03 12:40:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-03 13:27:10 +0000
commitc12389d9ee68e0512676531b2e2e70eaf02e99f2 (patch)
treebfdee393e5a30d675738af732010aff9e990bf7b
parent885fd98fa399013ad8aeb1d2ccfc011ea5dd7bb0 (diff)
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
-rw-r--r--vcl/source/control/ilstbox.cxx7
1 files changed, 7 insertions, 0 deletions
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 )