diff --git a/src/imp/imp_board.cpp b/src/imp/imp_board.cpp index 009cc7b4..9db8c2c6 100644 --- a/src/imp/imp_board.cpp +++ b/src/imp/imp_board.cpp @@ -315,6 +315,8 @@ void ImpBoard::update_action_sensitivity() case ObjectType::POLYGON_ARC_CENTER: case ObjectType::POLYGON_VERTEX: case ObjectType::POLYGON_EDGE: { + if (!core_board.get_board()->polygons.count(x.uuid)) + return false; const auto &poly = *core_board.get_polygon(x.uuid); if (auto plane = dynamic_cast(poly.usage.ptr)) return true;