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.grandin@collabora.co.uk>
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index 16af09c..6b1c68b 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)
                    {