mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-28 17:06:31 +02:00
Fixed a small glitch too: cut & paste of cells was possible in viewer mode
This commit is contained in:
@@ -1017,6 +1017,9 @@ HierarchyControlPanel::cut ()
|
||||
bool needs_to_ask = false;
|
||||
|
||||
db::Layout &layout = m_cellviews [m_active_index]->layout ();
|
||||
if (! layout.is_editable ()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// collect the called cells of the cells to copy, so we don't copy a cell twice
|
||||
|
||||
@@ -1154,6 +1157,9 @@ HierarchyControlPanel::paste ()
|
||||
}
|
||||
|
||||
db::Layout &layout = m_cellviews [m_active_index]->layout ();
|
||||
if (! layout.is_editable ()) {
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<unsigned int> new_layers;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user