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

don't access past end of string

Change-Id: Ia431f51cb02bbd235cdfe56a8131d7b622e9e311
üst 3aa58661
......@@ -150,7 +150,7 @@ MSHORT SwBlankPortion::MayUnderFlow( const SwTxtFormatInfo &rInf,
return 0; // Nur noch BlankPortions unterwegs
// Wenn vor uns ein Blank ist, brauchen wir kein Underflow ausloesen,
// wenn hinter uns ein Blank ist, brauchen wir kein Underflow weiterreichen
if( bUnderFlow && CH_BLANK == rInf.GetTxt()[ nIdx + 1] )
if (bUnderFlow && nIdx + 1 < rInf.GetTxt().getLength() && CH_BLANK == rInf.GetTxt()[nIdx + 1])
return 0;
if( nIdx && !((SwTxtFormatInfo&)rInf).GetFly() )
{
......
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