mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 21:19:18 +02:00
LCL carbon: fixed another bug in text layout caching recalculations
git-svn-id: trunk@13992 -
This commit is contained in:
parent
d66e2c9627
commit
011034bb1d
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user