diff --git a/pcbnew/plugins/fabmaster/import_fabmaster.cpp b/pcbnew/plugins/fabmaster/import_fabmaster.cpp index 6ce60cae08..f31b13d7a8 100644 --- a/pcbnew/plugins/fabmaster/import_fabmaster.cpp +++ b/pcbnew/plugins/fabmaster/import_fabmaster.cpp @@ -2525,19 +2525,16 @@ bool FABMASTER::loadZone( BOARD* aBoard, const std::unique_ptr } } - if( zone && zone_outline ) - { - if( zone_outline->Outline( 0 ).PointCount() >= 3 ) - { - zone->SetOutline( zone_outline ); - aBoard->Add( zone, ADD_MODE::APPEND ); - } - else - { - delete( zone_outline ); - delete( zone ); - } - } + if( zone_outline->Outline( 0 ).PointCount() >= 3 ) + { + zone->SetOutline( zone_outline ); + aBoard->Add( zone, ADD_MODE::APPEND ); + } + else + { + delete( zone_outline ); + delete( zone ); + } return true; }