diff --git a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas index 7a345d1e5..a1f231c3e 100644 --- a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas +++ b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas @@ -17882,7 +17882,7 @@ begin if hoVisible in FHeader.FOptions then Dec(Y, FHeader.Height); - if (Y < Integer(FDefaultNodeHeight)) and (FOffsetY <> 0) then + if (Y > 0) and (Y < Integer(FDefaultNodeHeight)) and (FOffsetY <> 0) then Include(Result, sdUp); //todo: probably the code below is bug due to poor timeGetTime implementation