Kaydet (Commit) 5fbafa28 authored tarafından Caolán McNamara's avatar Caolán McNamara

make this safe

üst 557ae8c0
...@@ -554,7 +554,9 @@ bool ViewOverlayManager::CreateTags() ...@@ -554,7 +554,9 @@ bool ViewOverlayManager::CreateTags()
{ {
bool bChanges = false; 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) ) if( pPage && !pPage->IsMasterPage() && (pPage->GetPageKind() == PK_STANDARD) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment