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

coverity#1078669 Failure to restore non-local value

Change-Id: I3817295a39e409cf5a9ab72b9b24d7b859f5a186
üst 1d3e4bc3
...@@ -2673,6 +2673,7 @@ int SwFEShell::Chainable( SwRect &rRect, const SwFrmFmt &rSource, ...@@ -2673,6 +2673,7 @@ int SwFEShell::Chainable( SwRect &rRect, const SwFrmFmt &rSource,
if ( rChain.GetNext() ) if ( rChain.GetNext() )
return SW_CHAIN_SOURCE_CHAINED; return SW_CHAIN_SOURCE_CHAINED;
int nRet = SW_CHAIN_NOT_FOUND;
if( Imp()->HasDrawView() ) if( Imp()->HasDrawView() )
{ {
SdrObject* pObj; SdrObject* pObj;
...@@ -2689,11 +2690,11 @@ int SwFEShell::Chainable( SwRect &rRect, const SwFrmFmt &rSource, ...@@ -2689,11 +2690,11 @@ int SwFEShell::Chainable( SwRect &rRect, const SwFrmFmt &rSource,
// Target and source should not be equal and the list // Target and source should not be equal and the list
// should not be cyclic // should not be cyclic
SwFrmFmt *pFmt = pFly->GetFmt(); SwFrmFmt *pFmt = pFly->GetFmt();
return GetDoc()->Chainable(rSource, *pFmt); nRet = GetDoc()->Chainable(rSource, *pFmt);
} }
pDView->SetHitTolerancePixel( nOld ); pDView->SetHitTolerancePixel( nOld );
} }
return SW_CHAIN_NOT_FOUND; return nRet;
} }
int SwFEShell::Chain( SwFrmFmt &rSource, const SwFrmFmt &rDest ) int SwFEShell::Chain( SwFrmFmt &rSource, const SwFrmFmt &rDest )
......
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