diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-29 09:50:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-29 11:10:29 +0100 |
commit | 4121fc92065ce9422d8029adba323a29605c3096 (patch) | |
tree | e04d0b8e29fa91bd0a7bddcc65e4b22c19fc3d6e | |
parent | a796b2ba09087dcdd6df45b20bd8703d85f2726b (diff) |
coverity#1325055 Unchecked dynamic_cast
Change-Id: Ib4017c3e771ed62a92328aced105c70159a2f1e2
-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); |