Fixing issue #2293

This commit is contained in:
Matthias Koefferlein 2026-03-07 13:28:35 +01:00
parent f8646851e1
commit 1985f5663c
1 changed files with 3 additions and 1 deletions

View File

@ -1951,7 +1951,9 @@ LayerControlPanel::do_update_content ()
mp_layer_list->doItemsLayout ();
// establishes the current layer in case it was changed during the "in update" phase
mp_layer_list->set_current (lay::LayerPropertiesConstIterator (mp_view->get_properties (), m_current_layer));
if (m_current_layer != 0) {
mp_layer_list->set_current (lay::LayerPropertiesConstIterator (mp_view->get_properties (), m_current_layer));
}
m_needs_update = false;