mirror of https://github.com/KLayout/klayout.git
Fixing name update - layer index needs to be valid
This commit is contained in:
parent
8b867bbc44
commit
b004cc2dfd
|
|
@ -640,7 +640,7 @@ LayerProperties::do_realize (const LayoutViewBase *view) const
|
|||
|
||||
}
|
||||
|
||||
if (m_layer_index >= 0) {
|
||||
if (m_layer_index >= 0 && cv->layout ().is_valid_layer (m_layer_index)) {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue