[Libreoffice-commits] core.git: sd/source
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 25 07:17:44 UTC 2019
sd/source/ui/slidesorter/controller/SlsListener.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 40f257e6df97ef9aedda0c8d2e4e8f410f074563
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Apr 24 18:12:41 2019 +0200
Commit: Xisco FaulĂ <xiscofauli at 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.grandin at collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Xisco FaulĂ <xiscofauli at 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)
More information about the Libreoffice-commits
mailing list