[Libreoffice-commits] .: sd/source
Muthu Subramanian
sumuthu at kemper.freedesktop.org
Thu Apr 26 22:45:38 PDT 2012
sd/source/core/drawdoc3.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7125ba7909a07fb01e11fec0c51465a3ef380efe
Author: Muthu Subramanian <sumuthu at suse.com>
Date: Fri Apr 27 11:30:13 2012 +0530
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.
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index 71b792d..870a9f1 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);
More information about the Libreoffice-commits
mailing list