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:
Matthias Koefferlein
2026-07-17 23:46:14 +02:00
parent c8d307c914
commit edad8f5221
5 changed files with 69 additions and 14 deletions
@@ -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);
}