From c58562aebfc8d2fe63a23ec327bc25967804c771 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 5 Sep 2021 21:06:18 +0100 Subject: [PATCH] Sigh. Values in the LibEdit are LIB_IDs; in Eeschema they are not. Fixes https://gitlab.com/kicad/code/kicad/issues/9098 --- eeschema/fields_grid_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/fields_grid_table.cpp b/eeschema/fields_grid_table.cpp index 944b3d2157..63beb13768 100644 --- a/eeschema/fields_grid_table.cpp +++ b/eeschema/fields_grid_table.cpp @@ -488,7 +488,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_frame->IsType( FRAME_SCH_SYMBOL_EDITOR ) && aRow == VALUE_FIELD ) { value = EscapeString( value, CTX_LIBID ); }