From 16e62b29f9fdc52593afa2da0460638f836d0670 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 14 Mar 2019 10:18:50 +0100 Subject: [PATCH] Zone fill: display progress bar when refilling a zone after edition. Previously, refilling a zone after edition was made silently, thus creating not understandable but very noticeable freeze time for complex zones. (cherry picked from commit 3692c511d0ebeb36b4dc508509d286207bd9c9d3) --- pcbnew/tools/point_editor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index e2c1d58e3f..bcd0971099 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -1,7 +1,7 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2013-2018 CERN + * Copyright (C) 2013-2019 CERN * @author Maciej Suminski * * This program is free software; you can redistribute it and/or @@ -46,6 +46,7 @@ using namespace std::placeholders; #include #include #include +#include #include "zone_filler.h" @@ -638,6 +639,8 @@ void POINT_EDITOR::finishItem() if( zone->IsFilled() && m_refill ) { ZONE_FILLER filler( board() ); + WX_PROGRESS_REPORTER reporter( getEditFrame(), _( "Refill Zones" ), 4 ); + filler.SetProgressReporter( &reporter ); filler.Fill( { zone } ); } }