summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-19 09:27:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-19 12:01:06 +0100
commited31a7c85a167d346cc203ac83cf53878c60101f (patch)
treeede986c851a97cca68faa7134f21e662462e0746 /sw
parent7a9e4c4ba8c6b8e068005f3831b989e3c929e8eb (diff)
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.grandin@collabora.co.uk> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/txtnode/fntcap.cxx7
1 files changed, 2 insertions, 5 deletions
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 );