mirror of https://github.com/KLayout/klayout.git
Fixing issue #2293
This commit is contained in:
parent
f8646851e1
commit
1985f5663c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue