diff --git a/sd/source/ui/unoidl/SdUnoOutlineView.cxx b/sd/source/ui/unoidl/SdUnoOutlineView.cxx index 057aa3c9aeb9..1d0e947218b4 100644 --- a/sd/source/ui/unoidl/SdUnoOutlineView.cxx +++ b/sd/source/ui/unoidl/SdUnoOutlineView.cxx @@ -100,26 +100,19 @@ void SAL_CALL SdUnoOutlineView::removeSelectionChangeListener ( (void)rxListener; } - - - //----- XDrawView ------------------------------------------------------------- - - void SAL_CALL SdUnoOutlineView::setCurrentPage ( const Reference< drawing::XDrawPage >& xPage) throw(RuntimeException, std::exception) { SvxDrawPage* pDrawPage = SvxDrawPage::getImplementation( xPage ); SdrPage *pSdrPage = pDrawPage ? pDrawPage->GetSdrPage() : NULL; + SdPage *pSdPage = dynamic_cast(pSdrPage); - if (pSdrPage != NULL) - mrOutlineViewShell.SetCurrentPage(dynamic_cast(pSdrPage)); + if (pSdPage != NULL) + mrOutlineViewShell.SetCurrentPage(pSdPage); } - - - Reference< drawing::XDrawPage > SAL_CALL SdUnoOutlineView::getCurrentPage (void) throw(RuntimeException, std::exception) {