diff options
-rw-r--r-- | sfx2/source/control/recentdocsviewitem.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index 3062da67d29d..570e782ad57b 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -27,8 +27,11 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR if (aTitle.isEmpty()) aTitle = aURLObj.GetName(INetURLObject::DECODE_WITH_CHARSET); - BitmapEx aThumbnail = ThumbnailView::readThumbnail(rURL); - if( aThumbnail.IsEmpty() ) + BitmapEx aThumbnail; + if (aURLObj.GetProtocol() == INET_PROT_FILE) + aThumbnail = ThumbnailView::readThumbnail(rURL); + + if (aThumbnail.IsEmpty()) { // Use the default thumbnail if we have nothing else BitmapEx aExt(RecentDocsView::getDefaultThumbnail(rURL)); |