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 1d6e0c12b67b..abfc888f8a48 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -233,8 +233,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)