mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:39:44 +02:00
IDE: fixed range check error with GDI handle
git-svn-id: trunk@15222 -
This commit is contained in:
parent
5cc276c316
commit
48395d5816
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user