Patch from bug #17555. Improves GetTextMetrics

git-svn-id: trunk@27666 -
This commit is contained in:
sekelsenmat 2010-10-12 13:48:45 +00:00
parent 91178e65d5
commit aacf8b768a

View File

@ -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