diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/accessibility/AccessibleSlideSorterView.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsListener.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/view/ViewShellHint.cxx | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx index 2fc11d1a537a..ac5d06f9a1ee 100644 --- a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx +++ b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx @@ -833,8 +833,9 @@ void AccessibleSlideSorterView::Implementation::Notify ( break; } } - else if (auto pViewShellHint = dynamic_cast<const sd::ViewShellHint*>(&rHint)) + else if (rHint.GetId() == SfxHintId::SdViewShell) { + auto pViewShellHint = static_cast<const sd::ViewShellHint*>(&rHint); switch (pViewShellHint->GetHintId()) { case sd::ViewShellHint::HINT_COMPLEX_MODEL_CHANGE_START: diff --git a/sd/source/ui/slidesorter/controller/SlsListener.cxx b/sd/source/ui/slidesorter/controller/SlsListener.cxx index dd7ef94de5d5..22e6dda70200 100644 --- a/sd/source/ui/slidesorter/controller/SlsListener.cxx +++ b/sd/source/ui/slidesorter/controller/SlsListener.cxx @@ -279,8 +279,9 @@ void Listener::Notify ( mrController.CheckForMasterPageAssignment(); mrController.CheckForSlideTransitionAssignment(); } - else if (auto pViewShellHint = dynamic_cast<const ViewShellHint*>(&rHint)) + else if (rHint.GetId() == SfxHintId::SdViewShell) { + auto pViewShellHint = static_cast<const ViewShellHint*>(&rHint); switch (pViewShellHint->GetHintId()) { case ViewShellHint::HINT_PAGE_RESIZE_START: diff --git a/sd/source/ui/view/ViewShellHint.cxx b/sd/source/ui/view/ViewShellHint.cxx index b86cbaa325d7..209db9856d7d 100644 --- a/sd/source/ui/view/ViewShellHint.cxx +++ b/sd/source/ui/view/ViewShellHint.cxx @@ -22,7 +22,8 @@ namespace sd { ViewShellHint::ViewShellHint(HintId eHintId) - : meHintId(eHintId) + : SfxHint(SfxHintId::SdViewShell) + , meHintId(eHintId) { } |