The format routine skips the second <BR>, but the paint engine does not. Because the linecount is longer valid (set in format routine) the last line will not get painted.
This seems like a pretty huge flaw to me.
I have solved this in code by adding the following at the end of function TParagraph.Reformat. (look for $IFDEF OBEC)
CharPos[i].xoff := x - lastx;
lastx := x;
{$IFDEF OBEC}
if cc = #10
then dec(i);
{$ENDIF}
inc(x, CharPos[i].Width);
if CharPos[i].Height > iHeight then iHeight := CharPos[i].Height;
if CharPos[i].Base > iBase then iBase := CharPos[i].Base;
inc(i);
Also note that i have only tested this with {$IFDEF NEWREFORMAT}.
#3♥ 0
This category is archived. No new posts are possible.