Hopefully the last of the symbol id escaping issues.

Fixes https://gitlab.com/kicad/code/kicad/issues/8694
This commit is contained in:
Jeff Young 2021-07-28 19:43:57 +01:00
parent de92aaab9a
commit 293f207356
2 changed files with 5 additions and 1 deletions

View File

@ -209,7 +209,7 @@ protected:
KIWAY_PLAYER* frame = m_dlg->Kiway().Player( FRAME_SCH_VIEWER_MODAL, true, m_dlg );
if( frame->ShowModal( &symbolId, m_dlg ) )
SetValue( symbolId );
SetValue( UnescapeString( symbolId ) );
frame->Destroy();
}

View File

@ -509,6 +509,10 @@ void DIALOG_EDIT_SYMBOLS_LIBID::AddRowToGrid( bool aMarkRow, const wxString& aRe
wxString getLibIdValue( const WX_GRID* aGrid, int aRow, int aCol )
{
wxString rawValue = aGrid->GetCellValue( aRow, aCol );
if( rawValue.IsEmpty() )
return rawValue;
wxString itemName;
wxString libName = rawValue.BeforeFirst( ':', &itemName );