diff --git a/common/footprint_info.cpp b/common/footprint_info.cpp index ce31cf5e1c..dd6be254bd 100644 --- a/common/footprint_info.cpp +++ b/common/footprint_info.cpp @@ -141,6 +141,8 @@ std::unique_ptr FOOTPRINT_LIST::GetInstance( KIWAY& aKiway ) FOOTPRINT_ASYNC_LOADER::FOOTPRINT_ASYNC_LOADER() : m_list( nullptr ) { + m_started = false; + m_total_libs = 0; } diff --git a/common/widgets/footprint_select_widget.cpp b/common/widgets/footprint_select_widget.cpp index d3b8375f64..8af66c6214 100644 --- a/common/widgets/footprint_select_widget.cpp +++ b/common/widgets/footprint_select_widget.cpp @@ -72,6 +72,7 @@ FOOTPRINT_SELECT_WIDGET::FOOTPRINT_SELECT_WIDGET( wxWindow* aParent, m_fp_loader( aLoader ), m_fp_list( aFpList ) { + m_zero_filter = true; m_sizer = new wxBoxSizer( wxVERTICAL ); m_progress_timer = std::make_unique( this ); m_book = new wxSimplebook( this, wxID_ANY ); diff --git a/include/geometry/poly_grid_partition.h b/include/geometry/poly_grid_partition.h index dba932d0bb..75ed0c42e8 100644 --- a/include/geometry/poly_grid_partition.h +++ b/include/geometry/poly_grid_partition.h @@ -281,6 +281,7 @@ private: { SCAN_STATE() { + dist_prev = INT_MAX; dist_max = INT_MAX; nearest = -1; nearest_prev = -1; diff --git a/pcbnew/footprint_preview_panel.cpp b/pcbnew/footprint_preview_panel.cpp index 6bb4b6cf23..3165eb6d0f 100644 --- a/pcbnew/footprint_preview_panel.cpp +++ b/pcbnew/footprint_preview_panel.cpp @@ -165,7 +165,7 @@ class FP_THREAD_IFACE std::deque m_loaderQueue; std::map m_cachedFootprints; LIB_ID m_current_fp; - FOOTPRINT_PREVIEW_PANEL* m_panel; + FOOTPRINT_PREVIEW_PANEL* m_panel = nullptr; MUTEX m_lock; };