diff -r dd58c6eee052 -r 795cadd2b83a textrendering/textformatting/tagma/TMINTERP.CPP --- a/textrendering/textformatting/tagma/TMINTERP.CPP Wed Sep 15 00:39:40 2010 +0300 +++ b/textrendering/textformatting/tagma/TMINTERP.CPP Wed Sep 15 14:10:32 2010 +0300 @@ -2745,6 +2745,7 @@ CFont::TMeasureTextInput input; input.iFlags = CFont::TMeasureTextInput::EFVisualOrder; input.iStartInputChar = 1; + input.iEndInputChar = aEnd; extra_pixels = text_bounds.Width() - aFont->MeasureText(aText, &input); }