mirror of https://github.com/KLayout/klayout.git
Merge branch 'xxx' into wip
This commit is contained in:
commit
cb07b856df
|
|
@ -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);
|
const auto &lp = cv->layout ().get_properties (m_layer_index);
|
||||||
if (! lp.name.empty () && m_source_real.name () != lp.name) {
|
if (! lp.name.empty () && m_source_real.name () != lp.name) {
|
||||||
m_source_real.name (lp.name);
|
m_source_real.name (lp.name);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue