Skip to content

Commit 1985f56

Browse files
author
Matthias Koefferlein
committed
Fixing issue #2293
1 parent f864685 commit 1985f56

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/layui/layui/layLayerControlPanel.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,9 @@ LayerControlPanel::do_update_content ()
19511951
mp_layer_list->doItemsLayout ();
19521952

19531953
// establishes the current layer in case it was changed during the "in update" phase
1954-
mp_layer_list->set_current (lay::LayerPropertiesConstIterator (mp_view->get_properties (), m_current_layer));
1954+
if (m_current_layer != 0) {
1955+
mp_layer_list->set_current (lay::LayerPropertiesConstIterator (mp_view->get_properties (), m_current_layer));
1956+
}
19551957

19561958
m_needs_update = false;
19571959

0 commit comments

Comments
 (0)