mirror of https://github.com/KLayout/klayout.git
Merge pull request #1876 from KLayout/issue-1870
Bugfix for issue #1870: do not allow editing on invalid layers
This commit is contained in:
commit
71a9e131a1
|
|
@ -98,6 +98,8 @@ ShapeEditService::get_edit_layer ()
|
|||
|
||||
if (cl.is_null ()) {
|
||||
throw tl::Exception (tl::to_string (tr ("Please select a layer first")));
|
||||
} else if (! cl->valid (true)) {
|
||||
throw tl::Exception (tl::to_string (tr ("The selected layer is not valid")));
|
||||
}
|
||||
|
||||
int cv_index = cl->cellview_index ();
|
||||
|
|
|
|||
Loading…
Reference in New Issue