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

coverity#704760 Dereference after null check

Change-Id: I16a1b9803eb4cbd6ce77c9017262093908261097
üst 5a619597
...@@ -613,6 +613,10 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) ...@@ -613,6 +613,10 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt)
sal_Bool bEmptyTextObj = sal_False; sal_Bool bEmptyTextObj = sal_False;
if (mxTextObj.is()) if (mxTextObj.is())
{
bool bReset = true;
if (mpView)
{ {
const SdrMarkList& rMarkList = mpView->GetMarkedObjectList(); const SdrMarkList& rMarkList = mpView->GetMarkedObjectList();
...@@ -623,8 +627,11 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) ...@@ -623,8 +627,11 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt)
bEmptyTextObj = sal_True; bEmptyTextObj = sal_True;
else else
bFirstObjCreated = sal_True; bFirstObjCreated = sal_True;
bReset = false;
} }
else }
if (bReset)
{ {
mxTextObj.reset( 0 ); mxTextObj.reset( 0 );
} }
......
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