sw/source/core/txtnode/fntcap.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
New commits: commit ed31a7c85a167d346cc203ac83cf53878c60101f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jan 19 09:27:40 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Jan 19 12:01:06 2022 +0100 crashtesting: use SetTextIdxLen and SetIdxLen as seen on loading e.g. kde112038-2.html Change-Id: I001733d63734d2138740afc74751b170fd268def Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128594 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Jenkins diff --git a/sw/source/core/txtnode/fntcap.cxx b/sw/source/core/txtnode/fntcap.cxx index 12dd8de0ccbf..a08988c45b9b 100644 --- a/sw/source/core/txtnode/fntcap.cxx +++ b/sw/source/core/txtnode/fntcap.cxx @@ -612,14 +612,11 @@ void SwSubFont::DoOnCapitals( SwDoCapitals &rDo ) oldText.copy(sal_Int32(nOldPos), sal_Int32(nPos-nOldPos))); aCapInf.nIdx = nOldPos; aCapInf.nLen = nPos - nOldPos; - rDo.GetInf().SetIdx(TextFrameIndex(0)); - rDo.GetInf().SetLen(TextFrameIndex(aNewText.getLength())); - rDo.GetInf().SetText( aNewText ); + rDo.GetInf().SetTextIdxLen(aNewText, TextFrameIndex(0), TextFrameIndex(aNewText.getLength())); } else { - rDo.GetInf().SetIdx( nOldPos ); - rDo.GetInf().SetLen( nPos - nOldPos ); + rDo.GetInf().SetIdxLen(nOldPos, nPos - nOldPos); } rDo.GetInf().SetUpper( false );