summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatteocam <matteo.campanelli@gmail.com>2015-08-19 19:19:22 +0200
committermatteocam <matteo.campanelli@gmail.com>2015-08-19 19:19:22 +0200
commit2e8693f0f8f2f2b78e250b08793affce644a9190 (patch)
tree4afee7ac372cb99e2bebcbc49240a09c73ad4a1f
parent9920184dc1e5db9697973e26992ad73c813c1800 (diff)
Check null pointer before AddUndo in chaining
Change-Id: I90d44cf78bd1ec21fd44596a6b3836933f0fc1bc
-rw-r--r--svx/source/svdraw/svdedxv.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 7ac84134ca48..1430e80faf57 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -536,7 +536,8 @@ IMPL_LINK_NOARG(SdrObjEditView,ImpChainingEventHdl)
}
}
- AddUndo(pTxtUndo);
+ if (pTxtUndo)
+ AddUndo(pTxtUndo);
//maCursorEvent = new CursorChainingEvent(pTextChain->GetCursorEvent(pTextObj));
//SdrTextObj *pNextLink = pTextObj->GetNextLinkInChain();