Skip to content

Commit

Permalink
Force rebuild of display table after removals
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cgzones committed Aug 14, 2024
1 parent 23ebdbb commit be4719d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Table.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit be4719d

Please sign in to comment.