Kaydet (Commit) ef966b00 authored tarafından Caolán McNamara's avatar Caolán McNamara

assert on laying out fdo#82018-3.docx

Change-Id: I325cd7ff03468009d06c886f800bd12e3acce976
üst 8de63ad5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment