sw/source/core/text/inftxt.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit bd5492275d31f59b1d269205018d1487af52426f Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Jan 19 14:10:38 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Jan 19 20:01:01 2022 +0100 print out a debug warning when we ignore dodgy processing Change-Id: I92d758caea3942e6a2fccdf9eb1f8019c5acae14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128614 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index 16af09c8ccbf..6b1c68bf3313 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -1231,7 +1231,8 @@ void SwTextPaintInfo::DrawBackBrush( const SwLinePortion &rPor ) const continue; } if ((i + TextFrameIndex(1) ).get() > GetText().getLength()) - ; // prevent crash by not passing bad data down to GetTextSize->SwDrawTextInfo + // prevent crash by not passing bad data down to GetTextSize->SwDrawTextInfo + SAL_WARN("sw", "something dodgy, clamping text index to prevent crash"); else if (i >= TextFrameIndex(GetText().getLength()) || GetText()[sal_Int32(i)] != CH_BLANK) {