Heng Sin Low 2009-05-21 07:34:06 +00:00
parent 893c2ddba6
commit 94686ee053
1 changed files with 8 additions and 7 deletions

View File

@ -512,7 +512,7 @@ public class StringElement extends PrintElement
if (tabPos == -1)
{
layout = measurer.nextLayout(p_maxWidth);
if (iter.getEndIndex() != measurer.nextOffset(p_maxWidth))
if (measurer.getPosition() < iter.getEndIndex())
fastDraw = false;
}
else // tab
@ -551,6 +551,7 @@ public class StringElement extends PrintElement
g2D.setFont(m_font);
g2D.setPaint(m_paint);
g2D.drawString(iter, xPen, yPen);
break;
}
else
{