mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 19:00:30 +02:00
Patch from bug #17555. Improves GetTextMetrics
git-svn-id: trunk@27666 -
This commit is contained in:
parent
91178e65d5
commit
aacf8b768a
@ -1016,7 +1016,7 @@ function TCanvas.GetTextMetrics(out TM: TLCLTextMetric): boolean;
|
||||
var
|
||||
TTM: TTextMetric;
|
||||
begin
|
||||
RequiredState([csHandleValid]);
|
||||
RequiredState([csHandleValid, csFontValid]); // csFontValid added in patch from bug 17555
|
||||
Fillchar(TM, SizeOf(TM), 0);
|
||||
Result := LCLIntf.GetTextMetrics(FHandle, TTM);
|
||||
if Result then begin
|
||||
|
Loading…
Reference in New Issue
Block a user