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:
parent
e69a95126a
commit
4feb7cd9ed
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user