diff options
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx index 34ae603bc238..0592358a1a8c 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -236,11 +236,13 @@ void RecentDocsView::OnItemDblClicked(ThumbnailViewItem *pItem) void RecentDocsView::OpenItem( const ThumbnailViewItem *pItem ) { + const RecentDocsViewItem* pRecentItem = dynamic_cast<const RecentDocsViewItem*>(pItem); + if (!pRecentItem) + return; + // show busy mouse pointer SetPointer(Pointer(POINTER_WAIT)); - const RecentDocsViewItem* pRecentItem = dynamic_cast<const RecentDocsViewItem*>(pItem); - Reference< XDispatch > xDispatch; Reference< XDispatchProvider > xDispatchProvider; css::util::URL aTargetURL; |