diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-05 21:41:16 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-05 21:41:16 +0100 |
commit | 9632045906baf165076d11a97f45b153d8e2acb7 (patch) | |
tree | 0137a14094df6cfdc65a361c1c6a50b8e6f72a35 /sd/source/ui/view/ViewShellManager.cxx | |
parent | 967a386bccb15b99915a1e878e42450fbe9a2d0e (diff) |
sd: fix STL assertion "dereference past-the-end iterator"
(regression from 967a386bccb15b99915a1e878e42450fbe9a2d0e)
Change-Id: I9408170eb155f433922e5b3887059078a141d78a
Diffstat (limited to 'sd/source/ui/view/ViewShellManager.cxx')
-rw-r--r-- | sd/source/ui/view/ViewShellManager.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx index 91f82cd47e6d..65bdd9ee7423 100644 --- a/sd/source/ui/view/ViewShellManager.cxx +++ b/sd/source/ui/view/ViewShellManager.cxx @@ -767,7 +767,8 @@ void ViewShellManager::Implementation::UpdateShellStack (void) CreateShells(); // Update the pointer to the top-most active view shell. - mpTopViewShell = maActiveViewShells.begin()->mpShell; + mpTopViewShell = (maActiveViewShells.empty()) + ? 0 : maActiveViewShells.begin()->mpShell; // 2. Create the internal target stack. |