From be4719d5670feb6c2d8e4bfa00d6678a55e745d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 14 Aug 2024 17:15:12 +0200 Subject: [PATCH] Force rebuild of display table after removals Table_compact() is called after Table_cleanupRow(), which might remove rows, which are still referenced by the display table. Set needsSort to true so that Table_updateDisplayList() always performs a rebuild and does access removed rows. Fixes: #1517 --- Table.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Table.h b/Table.h index 79ea70ca0..d1bf25af3 100644 --- a/Table.h +++ b/Table.h @@ -88,6 +88,7 @@ void Table_cleanupRow(Table* this, Row* row, int idx); static inline void Table_compact(Table* this) { Vector_compact(this->rows); + this->needsSort = true; } #endif