Bugfix for issue #1870: do not allow editing on invalid layers

This commit is contained in:
Matthias Koefferlein 2024-09-28 18:11:53 +02:00
parent 7953cadab2
commit 10baec009c
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 ();