From 006e1be69c88bc8562edc7414265046beb164ddd Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 4 Mar 2022 10:42:32 +0100 Subject: [PATCH] ZONE: display number of vertices on the info panel (regression fix) This is a useful info because the calculation time depend on this number. --- pcbnew/zone.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pcbnew/zone.cpp b/pcbnew/zone.cpp index 5881a671c7..ec6a36f823 100644 --- a/pcbnew/zone.cpp +++ b/pcbnew/zone.cpp @@ -620,6 +620,20 @@ void ZONE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector& // and filled polygons can explain the display and DRC calculation time: msg.Printf( wxT( "%d" ), (int) m_borderHatchLines.size() ); aList.emplace_back( MSG_PANEL_ITEM( _( "HatchBorder Lines" ), msg ) ); + + if( !m_FilledPolysList.empty() ) + { + count = 0; + + for( auto item: m_FilledPolysList ) + { + const std::shared_ptr& polyset = item.second; + count += polyset->TotalVertices(); + } + + msg.Printf( wxT( "%d" ), count ); + aList.emplace_back( MSG_PANEL_ITEM( _( "Corner Count" ), msg ) ); + } }