diff options
Diffstat (limited to 'sw/source/core/text/inftxt.cxx')
-rw-r--r-- | sw/source/core/text/inftxt.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |