sd/source/core/drawdoc3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7125ba7909a07fb01e11fec0c51465a3ef380efe
Author: Muthu Subramanian <[email protected]>
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);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to