From 10baec009c7760c76012210eae9db12b6446dc71 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 28 Sep 2024 18:11:53 +0200 Subject: [PATCH] Bugfix for issue #1870: do not allow editing on invalid layers --- src/edt/edt/edtServiceImpl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/edt/edt/edtServiceImpl.cc b/src/edt/edt/edtServiceImpl.cc index 669eb166f..f92121c34 100644 --- a/src/edt/edt/edtServiceImpl.cc +++ b/src/edt/edt/edtServiceImpl.cc @@ -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 ();