summaryrefslogtreecommitdiff
path: root/sd/source/core
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@suse.com>2012-04-27 11:30:13 +0530
committerMuthu Subramanian <sumuthu@suse.com>2012-04-27 11:32:39 +0530
commit7125ba7909a07fb01e11fec0c51465a3ef380efe (patch)
tree8d2f7cb1b67f143b45035f72efdc845f9e1b6061 /sd/source/core
parent9e82b503fe794df56be48cce0bff3c6c08111358 (diff)
n#48778: Clicking on Master Pages crashes.
* Opening the pptx file and clicking on 'Available for use' in the Master Pages pane (on the right) causes crash.
Diffstat (limited to 'sd/source/core')
-rw-r--r--sd/source/core/drawdoc3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index 71b792d47739..870a9f15b009 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -1667,7 +1667,7 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
SdPresentationLayoutUndoAction * pPLUndoAction =
new SdPresentationLayoutUndoAction
(this,
- pPage->IsMasterPage() ? aLayoutName : aOldLayoutName,
+ ( pPage && pPage->IsMasterPage() ) ? aLayoutName : aOldLayoutName,
aLayoutName,
eAutoLayout, eAutoLayout, sal_False, *pIter);
pUndoMgr->AddUndoAction(pPLUndoAction);