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 ); }