Kaydet (Commit) 0c4baf56 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1325056 Unchecked dynamic_cast

Change-Id: I34989b976f06627ce38cb7db11a96b85b1b89b4e
üst 4121fc92
...@@ -1283,10 +1283,11 @@ TextChainCursorManager *SdrObjEditView::ImpHandleMotionThroughBoxesKeyInput( ...@@ -1283,10 +1283,11 @@ TextChainCursorManager *SdrObjEditView::ImpHandleMotionThroughBoxesKeyInput(
{ {
*bOutHandled = false; *bOutHandled = false;
SdrTextObj* pTextObj = NULL; if (!mxTextEditObj.is())
if (mxTextEditObj.is()) return NULL;
pTextObj= dynamic_cast<SdrTextObj*>(mxTextEditObj.get());
else SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>(mxTextEditObj.get());
if (!pTextObj)
return NULL; return NULL;
if (!pTextObj->GetNextLinkInChain() && !pTextObj->GetPrevLinkInChain()) if (!pTextObj->GetNextLinkInChain() && !pTextObj->GetPrevLinkInChain())
...@@ -1302,8 +1303,6 @@ TextChainCursorManager *SdrObjEditView::ImpHandleMotionThroughBoxesKeyInput( ...@@ -1302,8 +1303,6 @@ TextChainCursorManager *SdrObjEditView::ImpHandleMotionThroughBoxesKeyInput(
return pCursorManager; return pCursorManager;
} }
bool SdrObjEditView::KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin) bool SdrObjEditView::KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin)
{ {
if(pTextEditOutlinerView) if(pTextEditOutlinerView)
......
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