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
+2
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 ();