summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-05-09 17:29:33 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-05-11 16:58:54 +0200
commitcaeda2233e648fb7537baee522410416dada39ea (patch)
treec0594f945ce9d875bde7ce1d16f1e1eb72b2179f /sw
parent5bc362cb9619617cdc347ee7a3475d8e78b3a109 (diff)
sw: fix invalid 16-bit downcast in SwTextIter::TruncLines()
Change-Id: I0a19e730d58c01b55a9de926aaaadb8ef4022317
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/itrtxt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/itrtxt.cxx b/sw/source/core/text/itrtxt.cxx
index 11dd062e0cfd..15e2762b7323 100644
--- a/sw/source/core/text/itrtxt.cxx
+++ b/sw/source/core/text/itrtxt.cxx
@@ -351,7 +351,7 @@ void SwTextIter::TruncLines( bool bNoteFollow )
if( RES_TXTATR_FLYCNT == pHt->Which() )
{
// check, if hint is in our range
- const sal_uInt16 nTmpPos = pHt->GetStart();
+ const sal_Int32 nTmpPos = pHt->GetStart();
if ( nEnd <= nTmpPos && nTmpPos < nRangeEnd )
pFollow->InvalidateRange_(
SwCharRange( nTmpPos, nTmpPos ) );