From 10f854d03bf65680a5c11e27fe890c65226d4290 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 8b04190d..4d3eb280 100644 --- a/Source/VirtualTrees.Header.pas +++ b/Source/VirtualTrees.Header.pas @@ -5267,7 +5267,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;