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

coverity#704924 Unchecked dynamic_cast

Change-Id: Ib8ca2a400947a4085238c3e0936636fbe134a023
üst cf5851d0
...@@ -3459,9 +3459,10 @@ void SwLayoutFrm::FormatWidthCols( const SwBorderAttrs &rAttrs, ...@@ -3459,9 +3459,10 @@ void SwLayoutFrm::FormatWidthCols( const SwBorderAttrs &rAttrs,
(Frm().*fnRect->fnGetHeight)(); (Frm().*fnRect->fnGetHeight)();
(Frm().*fnRect->fnAddBottom)( nDiff ); (Frm().*fnRect->fnAddBottom)( nDiff );
// #i68520# // #i68520#
if ( dynamic_cast<SwFlyFrm*>(this) ) SwFlyFrm *pFlyFrm = dynamic_cast<SwFlyFrm*>(this);
if (pFlyFrm)
{ {
dynamic_cast<SwFlyFrm*>(this)->InvalidateObjRectWithSpaces(); pFlyFrm->InvalidateObjRectWithSpaces();
} }
(this->*fnRect->fnSetYMargins)( nTop, nBorder - nTop ); (this->*fnRect->fnSetYMargins)( nTop, nBorder - nTop );
ChgLowersProp( aOldSz ); ChgLowersProp( aOldSz );
......
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