diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-04-24 18:12:41 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-04-25 09:17:09 +0200 |
commit | 40f257e6df97ef9aedda0c8d2e4e8f410f074563 (patch) | |
tree | 985c09e05753f590e37e1ee7b8e70b6a87ba0ce8 | |
parent | 5537c283a766337ee7b128d6f7fab5dd56937489 (diff) |
Re-arrange the conditions to avoid the dynamic_cast
Similar to 88be8aa14d52ad102dc6b01c1c962d4e6cac4941
Change-Id: I616ad50bfdc4c11be9b377e218636092adc3bd42
Reviewed-on: https://gerrit.libreoffice.org/71249
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsListener.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsListener.cxx b/sd/source/ui/slidesorter/controller/SlsListener.cxx index 0a25ae07c71b..2ca2e62d46c7 100644 --- a/sd/source/ui/slidesorter/controller/SlsListener.cxx +++ b/sd/source/ui/slidesorter/controller/SlsListener.cxx @@ -288,6 +288,11 @@ void Listener::Notify ( break; } } + else if (rHint.GetId() == SfxHintId::DocChanged) + { + mrController.CheckForMasterPageAssignment(); + mrController.CheckForSlideTransitionAssignment(); + } else if (dynamic_cast<const ViewShellHint*>(&rHint)) { const ViewShellHint& rViewShellHint = static_cast<const ViewShellHint&>(rHint); @@ -322,11 +327,6 @@ void Listener::Notify ( break; } } - else if (rHint.GetId() == SfxHintId::DocChanged) - { - mrController.CheckForMasterPageAssignment(); - mrController.CheckForSlideTransitionAssignment(); - } } IMPL_LINK(Listener, EventMultiplexerCallback, ::sd::tools::EventMultiplexerEvent&, rEvent, void) |