diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-02-16 14:35:28 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-02-16 14:35:28 +0100 |
commit | 71214c0f92851b63ab756488e7edba9b2a88d4cc (patch) | |
tree | c1f626a56052158054cac6d0433839d232088f14 /vcl/source/control | |
parent | 6897ce5854b0c37e0413294d9cfc292a6385335b (diff) |
dba34d: #i116215# ImplSelectionChangedHdl: when an entry has been de-selected in drop-down-mode, reset mpImplWin to display nothing
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/lstbox.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx index 594b76684a1a..49b949bdefdc 100644 --- a/vcl/source/control/lstbox.cxx +++ b/vcl/source/control/lstbox.cxx @@ -290,8 +290,15 @@ IMPL_LINK( ListBox, ImplSelectionChangedHdl, void*, n ) Image aImage = mpImplLB->GetEntryList()->GetEntryImage( nChanged ); mpImplWin->SetImage( aImage ); } - mpImplWin->Invalidate(); } + else + { + mpImplWin->SetItemPos( LISTBOX_ENTRY_NOTFOUND ); + mpImplWin->SetString( ImplGetSVEmptyStr() ); + Image aImage; + mpImplWin->SetImage( aImage ); + } + mpImplWin->Invalidate(); } return 1; } |