LCL: issue #0014257 - SetCursor faulty under GTK2 - changes cursor for

wrong control
correction to rev 47814 #ed5fd30d67 to properly handle scrolled controls 
file include/graphiccontrol.inc

git-svn-id: trunk@47841 -
This commit is contained in:
giuliano 2015-02-16 23:33:20 +00:00
parent b0bc92627b
commit f652020761

View File

@ -113,7 +113,7 @@ begin
if not Visible then exit;
if Parent <> nil then begin
// execute only if the cursor is actually over the control
Pt := Parent.ScreenToClient(Mouse.CursorPos);
Pt := Parent.ScreenToControl(Mouse.CursorPos);
Ct := Parent.ControlAtPos(Pt, True);
if (Self = Ct) then
SetTempCursor(FCursor);