summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-04-13 13:13:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-04-13 13:13:45 +0100
commit5fbafa28829172d09ecbbca1f5342bc9d9fdca12 (patch)
treebf5326e269c1f0d18f4ccdd89a855b64edf900d4 /sd
parent557ae8c01fae6f6d9f7c249c101b3975b89d8eb7 (diff)
make this safe
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/viewoverlaymanager.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx
index 4e4f539eabbb..ad0e2b3ab212 100644
--- a/sd/source/ui/view/viewoverlaymanager.cxx
+++ b/sd/source/ui/view/viewoverlaymanager.cxx
@@ -554,7 +554,9 @@ bool ViewOverlayManager::CreateTags()
{
bool bChanges = false;
- SdPage* pPage = mrBase.GetMainViewShell()->getCurrentPage();
+ ::boost::shared_ptr<ViewShell> aMainShell = mrBase.GetMainViewShell();
+
+ SdPage* pPage = aMainShell.get() ? aMainShell->getCurrentPage() : NULL;
if( pPage && !pPage->IsMasterPage() && (pPage->GetPageKind() == PK_STANDARD) )
{