Skip to content

Commit

Permalink
Merge pull request #1876 from KLayout/issue-1870
Browse files Browse the repository at this point in the history
Bugfix for issue #1870: do not allow editing on invalid layers
  • Loading branch information
klayoutmatthias authored Oct 6, 2024
2 parents 0f79b44 + 10baec0 commit 71a9e13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/edt/edt/edtServiceImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit 71a9e13

Please sign in to comment.