RxFPC: fix show hint for RxDBGrid cell

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7359 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alexs75
2020-04-05 19:57:18 +00:00
parent 8b0581017d
commit 8cb1f22c1f

View File

@ -5652,15 +5652,15 @@ begin
if (CellRect_.Bottom > CursorPos.Y) and (CellRect_.Right > CursorPos.X) then
if Assigned(FOnDataHintShow) then
begin
Processed := False;
rec := DataLink.ActiveRecord;
try
DataLink.ActiveRecord := Cell.y - 1;
HintStr_ := tCol.Field.DisplayText;
FOnDataHintShow(Self, CursorPos, Cell, tCol, HintStr_, Processed);
finally
DataLink.ActiveRecord := rec;
end;
Processed := False;
FOnDataHintShow(Self, CursorPos, Cell, tCol, HintStr_, Processed);
if Processed then
HintStr := HintStr_;
end;