Sigh. Values in the LibEdit are LIB_IDs; in Eeschema they are not.

Fixes https://gitlab.com/kicad/code/kicad/issues/9098
This commit is contained in:
Jeff Young 2021-09-05 21:06:18 +01:00
parent 921b6c826b
commit c58562aebf
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ void FIELDS_GRID_TABLE<T>::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 );
}