diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-08-03 13:35:19 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-08-19 16:26:03 +0000 |
commit | 6ce6b25ef4fbca3dae71b40e07176b0eeb8e1ca7 (patch) | |
tree | bdd0ebf1fe735c770c5d3f7acec8c113f6b02292 /sd | |
parent | 48cfdaa4fa453af03d18832e3765ffd65a5e107f (diff) |
fdo#67707 - avoid crash with sidebar when switching to writer from impress.
Change-Id: I0010663951fe67bfb864ffdaecb251b3da5a3ac3
(cherry picked from commit 457bc1ebdf327685fcf2ccac8d6c87c839c43200)
Reviewed-on: https://gerrit.libreoffice.org/5516
Tested-by: Michael Meeks <michael.meeks@suse.com>
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx index ca0ff0b5824c..c1b1e1a824a5 100644 --- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include "controller/SlsSelectionFunction.hxx" #include "SlideSorter.hxx" @@ -439,7 +438,7 @@ sal_Bool SelectionFunction::KeyInput (const KeyEvent& rEvent) mpModeHandler->SetCurrentPage(pDescriptor); mpModeHandler->SwitchView(pDescriptor); } - else + else if (pViewShell->GetDispatcher() != NULL) { pViewShell->GetDispatcher()->Execute( SID_INSERTPAGE, |