mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 12:49:21 +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);
|
DC := GetDC(Parent.Handle);
|
||||||
try
|
try
|
||||||
R := Rect(0, 0, 600, 200);
|
R := Rect(0, 0, 600, 200);
|
||||||
OldFont := SelectObject(DC, Font.Reference.Handle);
|
OldFont := SelectObject(DC, HGDIOBJ(Font.Reference.Handle));
|
||||||
Flags := DT_CalcRect;
|
Flags := DT_CalcRect;
|
||||||
inc(Flags, DT_WordBreak);
|
inc(Flags, DT_WordBreak);
|
||||||
LabelText := GetLabelText;
|
LabelText := GetLabelText;
|
||||||
|
Loading…
Reference in New Issue
Block a user