From ef2b164e1a88bc40c650a3701ffaf83de0590da5 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Fri, 15 Aug 2025 15:00:10 +0200 Subject: [PATCH] Bugfix: properly supporting Undo on 'apply technology' (layer properties were cleared) --- src/laybasic/laybasic/layLayoutViewBase.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/laybasic/laybasic/layLayoutViewBase.cc b/src/laybasic/laybasic/layLayoutViewBase.cc index f870f7dc5..a11ddf17a 100644 --- a/src/laybasic/laybasic/layLayoutViewBase.cc +++ b/src/laybasic/laybasic/layLayoutViewBase.cc @@ -2642,7 +2642,9 @@ LayoutViewBase::signal_apply_technology (lay::LayoutHandle *layout_handle) // remove all references to the cellview in the layer properties for (unsigned int lindex = 0; lindex < layer_lists (); ++lindex) { - m_layer_properties_lists [lindex]->remove_cv_references (i); + lay::LayerPropertiesList props = *m_layer_properties_lists [lindex]; + props.remove_cv_references (i); + set_properties (lindex, props); } // if a layer properties file is set, create the layer properties now