sw/source/core/doc/notxtfrm.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
New commits: commit 90c25e59124deb8fc2d282f828dd95bfd899024c Author: Xisco Fauli <[email protected]> AuthorDate: Fri Nov 22 15:31:40 2024 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Fri Nov 22 17:07:11 2024 +0100 PVS: V547 Expression 'bComplete' is always true. Since commit 47527821f32f9b5890b39b4031f5962f5cb46646 Author: Bjoern Michaelsen <[email protected]> Date: Mon Nov 16 22:17:07 2020 +0100 SwGrfNode: Remove graphic arrived hack Change-Id: I7c0a3b0208d2da06781be6b69e04e9958b762870 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177036 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx index 6a310a478221..fb20220cf9f3 100644 --- a/sw/source/core/doc/notxtfrm.cxx +++ b/sw/source/core/doc/notxtfrm.cxx @@ -772,8 +772,6 @@ void SwNoTextFrame::SwClientNotify(const SwModify& rModify, const SfxHint& rHint SwContentFrame::SwClientNotify(rModify, rHint); - bool bComplete = true; - switch( nWhich ) { case RES_OBJECTDYING: @@ -840,11 +838,8 @@ void SwNoTextFrame::SwClientNotify(const SwModify& rModify, const SfxHint& rHint return; } - if( bComplete ) - { - InvalidatePrt(); - SetCompletePaint(); - } + InvalidatePrt(); + SetCompletePaint(); } static void lcl_correctlyAlignRect( SwRect& rAlignedGrfArea, const SwRect& rInArea, vcl::RenderContext const * pOut )
