From 21c104fcc7d9c4d5997e939b3f8432607465aec9 Mon Sep 17 00:00:00 2001 From: Jean-Samuel Reynaud Date: Wed, 30 Aug 2017 19:36:03 +0200 Subject: [PATCH] Fix incorrect (missing) initialisation of m_cur_grid in symbols libraries table dialog box --- eeschema/dialogs/dialog_sym_lib_table.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eeschema/dialogs/dialog_sym_lib_table.cpp b/eeschema/dialogs/dialog_sym_lib_table.cpp index ccaead2c9c..cf091e5f39 100644 --- a/eeschema/dialogs/dialog_sym_lib_table.cpp +++ b/eeschema/dialogs/dialog_sym_lib_table.cpp @@ -202,9 +202,15 @@ DIALOG_SYMBOL_LIB_TABLE::DIALOG_SYMBOL_LIB_TABLE( wxTopLevelWindow* aParent, // for ALT+A handling, we want the initial focus to be on the first selected grid. if( m_pageNdx == 0 ) + { m_global_grid->SetFocus(); + m_cur_grid = m_global_grid; + } else + { m_project_grid->SetFocus(); + m_cur_grid = m_project_grid; + } // On some window managers (Unity, XFCE), this dialog is // not always raised, depending on this dialog is run.