mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-04 08:43:42 +02:00
Bugfix: update layer names in layer list (when used in secondary fashion) on reload
1. The readers will overwrite the layer names if given in secondary fashion (additionally to layer/datatype) 2. The layer properties nodes will update the "real source" according to the actual name if the name is used in addition to layer/datatypes
This commit is contained in:
@@ -640,6 +640,13 @@ LayerProperties::do_realize (const LayoutViewBase *view) const
|
||||
|
||||
}
|
||||
|
||||
if (m_layer_index >= 0) {
|
||||
const auto &lp = cv->layout ().get_properties (m_layer_index);
|
||||
if (! lp.name.empty () && m_source_real.name () != lp.name) {
|
||||
m_source_real.name (lp.name);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3383,6 +3383,7 @@ LayoutViewBase::reload_layout (unsigned int cv_index)
|
||||
}
|
||||
|
||||
set_properties (new_props);
|
||||
do_update_layer_sources ();
|
||||
|
||||
goto_view (state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user