diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-28 11:43:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-28 13:49:45 +0100 |
commit | fb58002b5922561591096ecfc0c96b0313eb7792 (patch) | |
tree | 2209b2281d19319e793a9bbe065aab62569fe1fd | |
parent | cf5851d039490d78288292389b8afd0b7f9959c3 (diff) |
coverity#704924 Unchecked dynamic_cast
Change-Id: Ib8ca2a400947a4085238c3e0936636fbe134a023
-rw-r--r-- | sw/source/core/layout/wsfrm.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx index 7e765e379d0e..ef638a8d335a 100644 --- a/sw/source/core/layout/wsfrm.cxx +++ b/sw/source/core/layout/wsfrm.cxx @@ -3459,9 +3459,10 @@ void SwLayoutFrm::FormatWidthCols( const SwBorderAttrs &rAttrs, (Frm().*fnRect->fnGetHeight)(); (Frm().*fnRect->fnAddBottom)( nDiff ); // #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 ); ChgLowersProp( aOldSz ); |