From 8de05987898885e9b3885858d499187b0a05c865 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 2 Jan 2018 18:25:52 +0000 Subject: [PATCH] Honor Fill_All_Zones()'s aVerbose parameter. Fixes: lp:1740909 * https://bugs.launchpad.net/kicad/+bug/1740909 --- pcbnew/zones_by_polygon_fill_functions.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pcbnew/zones_by_polygon_fill_functions.cpp b/pcbnew/zones_by_polygon_fill_functions.cpp index 51e3b1ab44..a092c705a7 100644 --- a/pcbnew/zones_by_polygon_fill_functions.cpp +++ b/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 progressReporter( - new WX_PROGRESS_REPORTER( aActiveWindow, _( "Fill All Zones" ), 3 ) - ); - ZONE_FILLER filler( GetBoard() ); - filler.SetProgressReporter( progressReporter.get() ); + + if( aVerbose ) + { + std::unique_ptr progressReporter( + new WX_PROGRESS_REPORTER( aActiveWindow, _( "Fill All Zones" ), 3 ) + ); + filler.SetProgressReporter( progressReporter.get() ); + } + filler.Fill( toFill ); return 0;