lcl: fix occasional error with drawing state image in treeview

git-svn-id: trunk@19472 -
This commit is contained in:
paul 2009-04-17 14:14:32 +00:00
parent 0695261700
commit fbfa82a616

View File

@ -4472,7 +4472,7 @@ begin
if (StateImages<>nil) and PaintImages then
begin
if (Node.StateIndex >= 0) and (Node.StateIndex < StateImages.Count) then
StateImages.Draw(Canvas, x + 1, (NodeRect.Top + NodeRect.Bottom - StateImages.Height),
StateImages.Draw(Canvas, x + 1, (NodeRect.Top + NodeRect.Bottom - StateImages.Height) div 2,
Node.StateIndex, True);
inc(x, StateImages.Width + 2);
end;