Honor Fill_All_Zones()'s aVerbose parameter.

Fixes: lp:1740909
* https://bugs.launchpad.net/kicad/+bug/1740909
This commit is contained in:
Jeff Young 2018-01-02 18:25:52 +00:00 committed by Wayne Stambaugh
parent 2dec95b4e6
commit 8de0598789
1 changed files with 9 additions and 5 deletions

View File

@ -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;