Kaydet (Commit) 4121fc92 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1325055 Unchecked dynamic_cast

Change-Id: Ib4017c3e771ed62a92328aced105c70159a2f1e2
üst a796b2ba
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment