Browse Source

Honor Fill_All_Zones()'s aVerbose parameter.

Fixes: lp:1740909
* https://bugs.launchpad.net/kicad/+bug/1740909
pull/5/merge
Jeff Young 8 years ago
committed by Wayne Stambaugh
parent
commit
8de0598789
  1. 14
      pcbnew/zones_by_polygon_fill_functions.cpp

14
pcbnew/zones_by_polygon_fill_functions.cpp

@ -99,12 +99,16 @@ int PCB_EDIT_FRAME::Fill_All_Zones( wxWindow * aActiveWindow, bool aVerbose )
toFill.push_back(zone);
}
std::unique_ptr<WX_PROGRESS_REPORTER> progressReporter(
new WX_PROGRESS_REPORTER( aActiveWindow, _( "Fill All Zones" ), 3 )
);
ZONE_FILLER filler( GetBoard() );
filler.SetProgressReporter( progressReporter.get() );
if( aVerbose )
{
std::unique_ptr<WX_PROGRESS_REPORTER> progressReporter(
new WX_PROGRESS_REPORTER( aActiveWindow, _( "Fill All Zones" ), 3 )
);
filler.SetProgressReporter( progressReporter.get() );
}
filler.Fill( toFill );
return 0;

Loading…
Cancel
Save