From 55db1aa5f5e89091dfc8792a477aadf4faa20980 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 13 Feb 2021 16:32:39 -0800 Subject: [PATCH] Fix minor Fabmaster issue --- pcbnew/plugins/fabmaster/import_fabmaster.cpp | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) 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; }