Fixing name update - layer index needs to be valid

This commit is contained in:
Matthias Koefferlein 2026-07-20 21:03:38 +02:00
parent 8b867bbc44
commit b004cc2dfd
1 changed files with 1 additions and 1 deletions

View File

@ -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);