LCL carbon: fixed another bug in text layout caching recalculations

git-svn-id: trunk@13992 -
This commit is contained in:
tombo 2008-02-06 10:14:25 +00:00
parent d66e2c9627
commit 011034bb1d

View File

@ -932,15 +932,14 @@ begin
begin begin
FFont.FCachedLayouts[Ord(FText[I])].Apply(ADC); FFont.FCachedLayouts[Ord(FText[I])].Apply(ADC);
if I > 1 then if I = 1 then
FTextAfter := FTextAfter + Long2Fix(FFont.FCachedLayouts[Ord(FText[I])].GetWidth)
else
begin begin
FAscent := FFont.FCachedLayouts[Ord(FText[1])].FAscent; FAscent := FFont.FCachedLayouts[Ord(FText[1])].FAscent;
FDescent := FFont.FCachedLayouts[Ord(FText[1])].FDescent; FDescent := FFont.FCachedLayouts[Ord(FText[1])].FDescent;
FTextBefore := FFont.FCachedLayouts[Ord(FText[1])].FTextBefore; FTextBefore := FFont.FCachedLayouts[Ord(FText[1])].FTextBefore;
FTextAfter := FTextBefore; FTextAfter := FTextBefore;
end; end;
FTextAfter := FTextAfter + Long2Fix(FFont.FCachedLayouts[Ord(FText[I])].GetWidth);
end; end;
end; end;