summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/core/drawdoc3.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index b57c67f843e1..b55510a91589 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -956,7 +956,9 @@ sal_Bool SdDrawDocument::InsertBookmarkAsPage(
if( bUndo )
EndUndo();
- pUndoMgr->LeaveListAction();
+
+ if (pUndoMgr)
+ pUndoMgr->LeaveListAction();
return bContinue;
}