mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 20:42:48 +00:00
fix linked groups in treeview nodes
This commit is contained in:
parent
60653e2632
commit
f9ee42c80d
@ -808,4 +808,15 @@ void ttree_view_node::select_node()
|
||||
label_->set_value_bool(true);
|
||||
}
|
||||
|
||||
void ttree_view_node::layout_initialise(const bool full_initialisation)
|
||||
{
|
||||
// Inherited.
|
||||
twidget::layout_initialise(full_initialisation);
|
||||
grid_.layout_initialise(full_initialisation);
|
||||
// Clear child caches.
|
||||
FOREACH(AUTO & child, children_)
|
||||
{
|
||||
child.layout_initialise(full_initialisation);
|
||||
}
|
||||
}
|
||||
} // namespace gui2
|
||||
|
@ -221,6 +221,7 @@ public:
|
||||
ttree_view_node* get_selectable_node_below();
|
||||
void select_node();
|
||||
tgrid& get_grid() { return grid_; }
|
||||
void layout_initialise(const bool full_initialisation);
|
||||
private:
|
||||
|
||||
int calculate_ypos();
|
||||
|
Loading…
x
Reference in New Issue
Block a user