sd/source/ui/slidesorter/controller/SlsListener.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit 40f257e6df97ef9aedda0c8d2e4e8f410f074563 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Apr 24 18:12:41 2019 +0200 Commit: Xisco Faulí <xiscofa...@libreoffice.org> CommitDate: Thu Apr 25 09:17:09 2019 +0200 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.gran...@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org> 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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits