Merge pull request #1876 from KLayout/issue-1870

Bugfix for issue #1870: do not allow editing on invalid layers
This commit is contained in:
Matthias Köfferlein 2024-10-06 18:20:45 +02:00 committed by GitHub
commit 71a9e131a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

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