diff options
Diffstat (limited to 'sw/source/core/text/guess.cxx')
-rw-r--r-- | sw/source/core/text/guess.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/guess.cxx b/sw/source/core/text/guess.cxx index b4eea8768c94..f3c0bb0b0018 100644 --- a/sw/source/core/text/guess.cxx +++ b/sw/source/core/text/guess.cxx @@ -207,7 +207,7 @@ bool SwTxtGuess::Guess( const SwTxtPortion& rPor, SwTxtFormatInfo &rInf, sal_Int32 nPorLen = 0; // do not call the break iterator nCutPos is a blank - sal_Unicode cCutChar = rInf.GetTxt()[ nCutPos ]; + sal_Unicode cCutChar = nCutPos < rInf.GetTxt().getLength() ? rInf.GetTxt()[nCutPos] : 0; if( CH_BLANK == cCutChar || CH_FULL_BLANK == cCutChar ) { nBreakPos = nCutPos; |