From 801e50450bf23628be7c6dbb2af74c3a3c49f3bb Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 13 Apr 2017 10:58:10 +0200 Subject: [PATCH] Revert "Fix component chooser dialog crash if there are no FPs available" This reverts commit 0a8a659ff7d54a3600095bdb87ca14cbb9f52065. The patch is incorrect, as it removes the FP chooser drop-down list. I cannot reproduce the crash with the patch reverted, so there must have been something specific to my configuration at that time. --- eeschema/dialogs/dialog_choose_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_choose_component.cpp b/eeschema/dialogs/dialog_choose_component.cpp index 1efa8dcddb..b219d249b7 100644 --- a/eeschema/dialogs/dialog_choose_component.cpp +++ b/eeschema/dialogs/dialog_choose_component.cpp @@ -167,7 +167,7 @@ wxPanel* DIALOG_CHOOSE_COMPONENT::ConstructRightPanel( wxWindow* aParent ) wxFULL_REPAINT_ON_RESIZE | wxSUNKEN_BORDER | wxTAB_TRAVERSAL ); m_sch_view_ctrl->SetLayoutDirection( wxLayout_LeftToRight ); - if( m_allow_field_edits && m_fp_list ) + if( m_allow_field_edits ) m_fp_sel_ctrl = new FOOTPRINT_SELECT_WIDGET( panel, m_fp_loader, m_fp_list, true ); else m_fp_sel_ctrl = nullptr;