diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2012-04-27 11:30:13 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-04-27 11:32:39 +0530 |
commit | 7125ba7909a07fb01e11fec0c51465a3ef380efe (patch) | |
tree | 8d2f7cb1b67f143b45035f72efdc845f9e1b6061 /sd | |
parent | 9e82b503fe794df56be48cce0bff3c6c08111358 (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')
-rw-r--r-- | sd/source/core/drawdoc3.cxx | 2 |
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); |