Skip to content

Commit 04c981e

Browse files
fix: Assert COLUMN_COUNT compare.
Inside the assert() statement should be the expected TRUE condition.
1 parent 110ac22 commit 04c981e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/code/controlergridtorrentdata.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ constructor TControlerGridTorrentData.Create(StringGridTorrentData: TStringGrid)
193193
FStringGridTorrentData.OnColRowMoved := @StringGridTorrentDataColRowMoved;
194194

195195
//The view and the controler part must have the same column count.
196-
Assert(FStringGridTorrentData.Columns.Count <> COLUMN_COUNT, 'Wrong column count');
196+
Assert(FStringGridTorrentData.Columns.Count = COLUMN_COUNT, 'Wrong column count');
197197

198198
//Track the column
199199
AddColumn(FTorrentFile, 0);

0 commit comments

Comments
 (0)