LCL: Fix GetHintControl to return a control with OnShowHint assigned. Issue #20637

git-svn-id: trunk@33389 -
This commit is contained in:
juha 2011-11-07 08:18:11 +00:00
parent d21a9a5ef8
commit 50c4916d2c

View File

@ -52,7 +52,7 @@ begin
// Find control that actually provides the hint = first parent with a hint text.
Result := Control;
while (Result <> nil) and (Result.Hint = '')
while (Result <> nil) and (Result.Hint = '') and (Result.OnShowHint = nil)
and (Result.ShowHint or Result.IsParentShowHint) do
Result := Result.Parent;