diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-05-24 18:40:28 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-08 21:51:32 +0200 |
commit | 3fdff983563cd03ee0b567d920e084fadea80705 (patch) | |
tree | fc5efb79f77422f35a85b9ef7da32b2f0b2168ad /sw/source/core/text/frmform.cxx | |
parent | e621b1cda4de9c0765e489a7c80642dd1e819f25 (diff) |
sw_redlinehide: what to do about SwParaPortion::GetDelta()
This has type "long", which is unusal. Presumably because it needed to
represent numbers from -USHRT_MAX to +USHRT_MAX back in the day.
Now we have sal_Int32 which happens to be signed and TextFrameIndex,
but these are always positive currently; would it be too confusing
to have a potentially negative TextFrameIndex here?
Change-Id: I18c4893d9d24b59e98e9a3994139842ea25ae716
Diffstat (limited to 'sw/source/core/text/frmform.cxx')
-rw-r--r-- | sw/source/core/text/frmform.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/frmform.cxx b/sw/source/core/text/frmform.cxx index 40ed097b1200..176914b69040 100644 --- a/sw/source/core/text/frmform.cxx +++ b/sw/source/core/text/frmform.cxx @@ -779,7 +779,7 @@ void SwTextFrame::SetOfst_(TextFrameIndex const nNewOfst) SwCharRange &rReformat = pPara->GetReformat(); rReformat.Start() = TextFrameIndex(0); rReformat.Len() = TextFrameIndex(GetText().getLength()); - pPara->GetDelta() = rReformat.Len(); + pPara->GetDelta() = sal_Int32(rReformat.Len()); } InvalidateSize(); } @@ -1281,7 +1281,7 @@ bool SwTextFrame::FormatLine( SwTextFormatter &rLine, const bool bPrev ) } // Calculating the good ol' nDelta - pPara->GetDelta() -= long(pNew->GetLen()) - long(nOldLen); + pPara->GetDelta() -= sal_Int32(pNew->GetLen()) - sal_Int32(nOldLen); // Stop! if( rLine.IsStop() ) |