From 630631b41b4b1dab6ae06289668f2291bdba088a Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 26 Jul 2018 16:04:31 +0200 Subject: [PATCH] Code formatting --- pcbnew/tools/zone_create_helper.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pcbnew/tools/zone_create_helper.cpp b/pcbnew/tools/zone_create_helper.cpp index 7d3da5e246..0f9c2f2adf 100644 --- a/pcbnew/tools/zone_create_helper.cpp +++ b/pcbnew/tools/zone_create_helper.cpp @@ -112,32 +112,32 @@ std::unique_ptr ZONE_CREATE_HELPER::createZoneFromExisting( void ZONE_CREATE_HELPER::performZoneCutout( ZONE_CONTAINER& aZone, ZONE_CONTAINER& aCutout ) { - BOARD_COMMIT commit ( &m_tool ); + BOARD_COMMIT commit( &m_tool ); BOARD* board = m_tool.getModel(); std::vector newZones; - - SHAPE_POLY_SET originalOutline ( *aZone.Outline() ); + + SHAPE_POLY_SET originalOutline( *aZone.Outline() ); originalOutline.BooleanSubtract( *aCutout.Outline(), SHAPE_POLY_SET::PM_FAST ); - + for( int i = 0; i < originalOutline.OutlineCount(); i++ ) { auto newZoneOutline = new SHAPE_POLY_SET; - newZoneOutline->AddOutline( originalOutline.Outline(i) ); - + newZoneOutline->AddOutline( originalOutline.Outline( i ) ); + auto newZone = new ZONE_CONTAINER( aZone ); newZone->SetOutline( newZoneOutline ); newZone->SetLocalFlags( 1 ); - newZone->Hatch( ); + newZone->Hatch(); newZones.push_back( newZone ); commit.Add( newZone ); } commit.Remove( &aZone ); - commit.Push( _("Add a zone cutout") ); + commit.Push( _( "Add a zone cutout" ) ); ZONE_FILLER filler( board ); - filler.Fill( newZones ); + filler.Fill( newZones ); }