IDE: fixed range check error with GDI handle

git-svn-id: trunk@15222 -
This commit is contained in:
vincents 2008-05-23 21:16:05 +00:00
parent 5cc276c316
commit 48395d5816

View File

@ -361,7 +361,7 @@ begin
DC := GetDC(Parent.Handle);
try
R := Rect(0, 0, 600, 200);
OldFont := SelectObject(DC, Font.Reference.Handle);
OldFont := SelectObject(DC, HGDIOBJ(Font.Reference.Handle));
Flags := DT_CalcRect;
inc(Flags, DT_WordBreak);
LabelText := GetLabelText;