summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2011-03-28 15:37:38 +0200
committerIvo Hinkelmann <ihi@openoffice.org>2011-03-28 15:37:38 +0200
commit62b76b304b04ff16da5e5f801bba791861feab18 (patch)
treebf8e3edce1d763695bf2520c308ac53adcf73f23 /vcl/source
parentd26d7768d7315d783fd143765ae68bc802c4445b (diff)
parenta754527bb20058cee5fc9bffaed1861e7239fa78 (diff)
CWS-TOOLING: integrate CWS dba34d
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/lstbox.cxx9
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;
}