From d96e52c1a3d5fa7def4b93c5e9bfd0d1ef3f1aea Mon Sep 17 00:00:00 2001 From: Joachim Marder Date: Fri, 29 Mar 2024 18:13:29 +0100 Subject: [PATCH] Fixed issue#1247 --- Source/VirtualTrees.Header.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/VirtualTrees.Header.pas b/Source/VirtualTrees.Header.pas index 76b97e61..a478ffc6 100644 --- a/Source/VirtualTrees.Header.pas +++ b/Source/VirtualTrees.Header.pas @@ -5508,7 +5508,7 @@ function TVirtualTreeColumns.GetPreviousColumn(Column : TColumnIndex) : TColumnI Result := FPositionToIndex[Position - 1] else Result := InvalidColumn; - Assert(Position <> Result, 'The previous column must not have the same position as the given column.'); + Assert(Column <> Result, 'The previous column must not have the same position as the given column.'); end; end;