7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 22:13:44 +00:00

API: Don't create zones without an outline

This commit is contained in:
lucas 2024-12-27 20:23:16 -05:00 committed by Jon Evans
parent e69a95126a
commit 4feb7cd9ed

View File

@ -322,6 +322,9 @@ bool ZONE::Deserialize( const google::protobuf::Any& aContainer )
*m_Poly = kiapi::common::UnpackPolySet( zone.outline() );
if( m_Poly->OutlineCount() == 0 )
return false;
if( m_isRuleArea )
{
const types::RuleAreaSettings& ra = zone.rule_area_settings();