lcl: fixed TToolButton.MouseUp X,Y in boundsrect check

git-svn-id: trunk@36715 -
This commit is contained in:
mattias 2012-04-10 18:29:47 +00:00
parent 23933fd6a6
commit 0b9fc091a6

View File

@ -115,7 +115,7 @@ begin
if FMouseInControl then
begin
Pt := Point(X, Y);
if not PtInRect(BoundsRect, Pt) then
if not PtInRect(Rect(0,0,Width,Height), Pt) then
SetMouseInControl(false);
end;
DropDownMenuDropped := False;