mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-02 19:28:37 +02:00
Fixing name update - layer index needs to be valid
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user