diff options
-rw-r--r-- | svx/source/svdraw/svdedxv.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 9c88120f842b..3efb93beabd7 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -567,13 +567,12 @@ void SdrObjEditView::ImpMoveCursorAfterChainingEvent(TextChainCursorManager *pCu SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>(mxTextEditObj.get()); // Check if it has links to move it to - if (!pTextObj->IsChainable()) + if (!pTextObj || !pTextObj->IsChainable()) return; TextChain *pTextChain = pTextObj->GetTextChain(); ESelection aNewSel = pTextChain->GetPostChainingSel(pTextObj); - pCursorManager->HandleCursorEventAfterChaining( pTextChain->GetCursorEvent(pTextObj), aNewSel); |