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-06 16:53:22 +0200 |
commit | 457bc1ebdf327685fcf2ccac8d6c87c839c43200 (patch) | |
tree | db6d068cf7806c879cb0b28a56ed4b66571e9acd /sd | |
parent | 0acdeacbe774b7e05323ad80b556e7102a083192 (diff) |
fdo#67707 - avoid crash with sidebar when switching to writer from impress.
Change-Id: I0010663951fe67bfb864ffdaecb251b3da5a3ac3
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, |