* Fix GetNodeAt when header is visible

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@405 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blikblum
2008-04-06 13:39:04 +00:00
parent 7e0bcbe685
commit 03ad773153

View File

@ -25161,14 +25161,18 @@ begin
AbsolutePos := Y;
if Relative then
begin
Inc(AbsolutePos, -FOffsetY);
if hoVisible in FHeader.FOptions then
Inc(AbsolutePos, FHeader.Height);
end;
// CurrentPos tracks a running term of the current position to test for.
// It corresponds always to the top position of the currently considered node.
//lclheader: adjust position if Header is visible
if hoVisible in FHeader.FOptions then
CurrentPos:=FHeader.Height
CurrentPos := FHeader.Height
else
CurrentPos := 0;