diff --git a/pcbnew/footprint_viewer_frame.cpp b/pcbnew/footprint_viewer_frame.cpp index 74ac039d3f..517f40ec8d 100644 --- a/pcbnew/footprint_viewer_frame.cpp +++ b/pcbnew/footprint_viewer_frame.cpp @@ -952,6 +952,13 @@ void FOOTPRINT_VIEWER_FRAME::ReloadFootprint( FOOTPRINT* aFootprint ) } +void FOOTPRINT_VIEWER_FRAME::HardRedraw() +{ + ReCreateLibraryList(); + ReCreateFootprintList(); + ReloadFootprint( GetBoard()->GetFirstFootprint() ); +} + void FOOTPRINT_VIEWER_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail ) { switch( mail.Command() ) diff --git a/pcbnew/footprint_viewer_frame.h b/pcbnew/footprint_viewer_frame.h index ff91685033..0c98769671 100644 --- a/pcbnew/footprint_viewer_frame.h +++ b/pcbnew/footprint_viewer_frame.h @@ -85,6 +85,8 @@ public: void KiwayMailIn( KIWAY_EXPRESS& mail ) override; + void HardRedraw() override; + protected: FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent );