summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/control/recentdocsview.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 74e3a7f26000..15c2400fa4e4 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -232,8 +232,14 @@ void RecentDocsView::MouseButtonUp(const MouseEvent& rMEvt)
ThumbnailViewItem* pItem = ImplGetItem(nPos);
if (pItem && nPos == mnLastMouseDownItem)
+ {
pItem->MouseButtonUp(rMEvt);
+ ThumbnailViewItem* pNewItem = ImplGetItem(nPos);
+ if(pNewItem)
+ pNewItem->setHighlight(true);
+ }
+
mnLastMouseDownItem = THUMBNAILVIEW_ITEM_NOTFOUND;
if (pItem)