mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 22:09:16 +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
|
||||
FFont.FCachedLayouts[Ord(FText[I])].Apply(ADC);
|
||||
|
||||
if I > 1 then
|
||||
FTextAfter := FTextAfter + Long2Fix(FFont.FCachedLayouts[Ord(FText[I])].GetWidth)
|
||||
else
|
||||
if I = 1 then
|
||||
begin
|
||||
FAscent := FFont.FCachedLayouts[Ord(FText[1])].FAscent;
|
||||
FDescent := FFont.FCachedLayouts[Ord(FText[1])].FDescent;
|
||||
FTextBefore := FFont.FCachedLayouts[Ord(FText[1])].FTextBefore;
|
||||
FTextAfter := FTextBefore;
|
||||
end;
|
||||
FTextAfter := FTextAfter + Long2Fix(FFont.FCachedLayouts[Ord(FText[I])].GetWidth);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user