From 339faae4d932687d87ead658322056b185a8e17a Mon Sep 17 00:00:00 2001 From: andrei <68240139+andrei8l@users.noreply.github.com> Date: Mon, 8 Nov 2021 01:51:17 +0200 Subject: [PATCH] inventory_ui: invalidate paging on collapse (#52659) --- src/inventory_ui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/inventory_ui.cpp b/src/inventory_ui.cpp index 7b76a0f333ca8..670751a512847 100644 --- a/src/inventory_ui.cpp +++ b/src/inventory_ui.cpp @@ -729,6 +729,7 @@ void inventory_column::set_collapsed( inventory_entry &entry, const bool collaps if( collapsed ) { entry.collapsed = collapse; + paging_is_valid = false; // recache cells in case the name changed std::size_t const index =