diff options
Diffstat (limited to 'sd/source/ui/func/funavig.cxx')
-rw-r--r-- | sd/source/ui/func/funavig.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/func/funavig.cxx b/sd/source/ui/func/funavig.cxx index 1c28b93d7bce..a739109a6c95 100644 --- a/sd/source/ui/func/funavig.cxx +++ b/sd/source/ui/func/funavig.cxx @@ -59,7 +59,7 @@ void FuNavigation::DoExecute( SfxRequest& rReq ) case SID_GO_TO_FIRST_PAGE: { if (!mpView->IsTextEdit() - && mpViewShell->ISA(DrawViewShell) + && dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr && !bSlideShow) { // jump to first page @@ -70,7 +70,7 @@ void FuNavigation::DoExecute( SfxRequest& rReq ) case SID_GO_TO_PREVIOUS_PAGE: { - if(mpViewShell->ISA(DrawViewShell) && !bSlideShow) + if( dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr && !bSlideShow) { // With no modifier pressed we move to the previous // slide. @@ -100,7 +100,7 @@ void FuNavigation::DoExecute( SfxRequest& rReq ) case SID_GO_TO_NEXT_PAGE: { - if(mpViewShell->ISA(DrawViewShell) && !bSlideShow) + if( dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr && !bSlideShow) { // With no modifier pressed we move to the next slide. mpView->SdrEndTextEdit(); @@ -129,7 +129,7 @@ void FuNavigation::DoExecute( SfxRequest& rReq ) case SID_GO_TO_LAST_PAGE: { if (!mpView->IsTextEdit() - && mpViewShell->ISA(DrawViewShell) + && dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr && !bSlideShow) { // jump to last page |