From 797cb2aaac55e75b772eff0ba6ccf8dbdcb2685a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 20 May 2022 18:00:16 +0100 Subject: [PATCH] Typo. LIB_SYMBOL's value field is the name; SCH_SYMBOL's value field is not. Fixes https://gitlab.com/kicad/code/kicad/issues/11556 (cherry picked from commit d381fd8b29d1eff4f613a9039b75a3b315689bd0) --- eeschema/fields_grid_table.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/fields_grid_table.cpp b/eeschema/fields_grid_table.cpp index 8cd7b2ad72..86a1525987 100644 --- a/eeschema/fields_grid_table.cpp +++ b/eeschema/fields_grid_table.cpp @@ -119,8 +119,8 @@ void FIELDS_GRID_TABLE::initGrid( WX_GRID* aGrid ) m_footprintAttr->SetEditor( fpIdEditor ); m_urlAttr = new wxGridCellAttr; - GRID_CELL_URL_EDITOR* urlEditor = - new GRID_CELL_URL_EDITOR( m_dialog, m_frame->Prj().SchSearchS() ); + GRID_CELL_URL_EDITOR* urlEditor = new GRID_CELL_URL_EDITOR( m_dialog, + m_frame->Prj().SchSearchS() ); urlEditor->SetValidator( m_urlValidator ); m_urlAttr->SetEditor( urlEditor ); @@ -503,7 +503,7 @@ void FIELDS_GRID_TABLE::SetValue( int aRow, int aCol, const wxString &aValue value = fn.GetFullPath(); } } - else if( m_parentType == SCH_SYMBOL_T && aRow == VALUE_FIELD ) + else if( m_parentType == LIB_SYMBOL_T && aRow == VALUE_FIELD ) { value = EscapeString( value, CTX_LIBID ); }