Skip to content

Commit

Permalink
inv_col: fix chevron for aggregated items
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei8l committed Apr 15, 2022
1 parent 4c46ce8 commit 837d58f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/inventory_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,7 @@ inventory_entry *inventory_column::add_entry( const inventory_entry &entry )
( ( !entry_item.has_parent() and !found_entry_item.has_parent() ) ||
( entry_item.has_parent() and found_entry_item.has_parent() and
entry_item.parent_item() == found_entry_item.parent_item() ) ) and
entry_item->is_collapsed() == found_entry_item->is_collapsed() and
entry_item->display_stacked_with( *found_entry_item, preset.get_checking_components() );
} );
if( entry_with_loc != entries.end() ) {
Expand All @@ -960,6 +961,7 @@ inventory_entry *inventory_column::add_entry( const inventory_entry &entry )
inventory_entry nentry( locations, entry.get_category_ptr() );
nentry.topmost_parent = entry_with_loc->topmost_parent;
nentry.generation = entry_with_loc->generation;
nentry.collapsed = entry_with_loc->collapsed;
entries.erase( entry_with_loc );
return add_entry( nentry );
}
Expand Down

0 comments on commit 837d58f

Please sign in to comment.