mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 23:19:29 +02:00
LCL: fixed uninitialized result
git-svn-id: trunk@16082 -
This commit is contained in:
parent
e2280116f1
commit
ae04e7ac70
@ -49,8 +49,10 @@ function TMouse.GetCursorPos : TPoint;
|
||||
var
|
||||
p : TPoint;
|
||||
begin
|
||||
WidgetSet.GetCursorPos(p);
|
||||
Result := P;
|
||||
if WidgetSet.GetCursorPos(p) then
|
||||
Result := P
|
||||
else
|
||||
Result:=Point(0,0);
|
||||
end;
|
||||
|
||||
procedure TMouse.SetCursorPos(AValue : TPoint);
|
||||
|
Loading…
Reference in New Issue
Block a user