DIALOG_BOARD_STATISTICS: Reset the drill count list before recalculations.

Fixes #10984
https://gitlab.com/kicad/code/kicad/issues/10984
This commit is contained in:
jean-pierre charras 2022-02-26 16:58:30 +01:00
parent 89c14f01f7
commit e61c48fbf2
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2019 Alexander Shuklin, jasuramme@gmail.com * Copyright (C) 2019 Alexander Shuklin, jasuramme@gmail.com
* Copyright (C) 2019-2021 KiCad Developers, see AUTHORS.txt for contributors. * Copyright (C) 2019-2022 KiCad Developers, see AUTHORS.txt for contributors.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@ -203,6 +203,7 @@ bool DIALOG_BOARD_STATISTICS::TransferDataToWindow()
void DIALOG_BOARD_STATISTICS::getDataFromPCB() void DIALOG_BOARD_STATISTICS::getDataFromPCB()
{ {
BOARD* board = m_parentFrame->GetBoard(); BOARD* board = m_parentFrame->GetBoard();
m_drillTypes.clear();
// Get footprints and pads count // Get footprints and pads count
for( FOOTPRINT* footprint : board->Footprints() ) for( FOOTPRINT* footprint : board->Footprints() )