Fixed issue-1164 (internal error on delete cells on archlinux) (#1166)

* Fixed issue-1164 (internal error on delete cells on archlinux)

* Found another location where take_cell would spoil cell_name

Co-authored-by: matthias <matthias@klayout.de>
This commit is contained in:
Matthias Köfferlein 2022-10-09 21:27:13 +02:00 committed by GitHub
parent c9cef44108
commit 8d1dcbb04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -845,7 +845,8 @@ Layout::delete_cells (const std::set<cell_index_type> &cells_to_delete)
if (manager () && manager ()->transacting ()) {
// note the "take" method - this takes out the cell
manager ()->queue (this, new NewRemoveCellOp (*c, cell_name (*c), true /*remove*/, take_cell (*c)));
std::string cn (cell_name (*c));
manager ()->queue (this, new NewRemoveCellOp (*c, cn, true /*remove*/, take_cell (*c)));
} else {
@ -913,7 +914,8 @@ Layout::delete_cell (cell_index_type id)
if (manager () && manager ()->transacting ()) {
// not the "take" method - this takes out the cell
manager ()->queue (this, new NewRemoveCellOp (id, cell_name (id), true /*remove*/, take_cell (id)));
std::string cn (cell_name (id));
manager ()->queue (this, new NewRemoveCellOp (id, cn, true /*remove*/, take_cell (id)));
} else {