summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-06-09 19:14:56 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-06-09 19:17:45 +0200
commit751308c234f78cc3ff3a282cef4be9747def59ec (patch)
tree6bc584814b1060957b9970ffd6bb8d6f8bce36f5 /sw/source
parent47cd12eba409ba08c041b5405a3f606102848365 (diff)
coverity#1436017 DEADCODE
Ass-umption is that nLen == 0 requires no changes here. Change-Id: I9af1110aed7998fdf0247c1fa8473f0180e8774e
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/txtfrm.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx
index 52f5139cebb5..9ea7968f402a 100644
--- a/sw/source/core/text/txtfrm.cxx
+++ b/sw/source/core/text/txtfrm.cxx
@@ -1630,10 +1630,7 @@ void SwTextFrame::SwClientNotify(SwModify const& rModify, SfxHint const& rHint)
const sal_Int32 m = -nNLen;
if (nLen && IsIdxInside(nPos, nLen))
{
- if (!nLen)
- InvalidateSize();
- else
- InvalidateRange( SwCharRange(nPos, TextFrameIndex(1)), m );
+ InvalidateRange( SwCharRange(nPos, TextFrameIndex(1)), m );
}
lcl_SetWrong( *this, rNode, nNPos, m, true );
if (nLen)