Fix footprint library editor bug.

* Don't convert footprint library path to wxFileName.  This removes a '/'
  from the GIT_HUB_PLUGIN uri which causes wxUri to choke and the incorrect
  plug in is selected.
This commit is contained in:
Wayne Stambaugh 2013-10-05 19:41:40 -04:00
parent ec7f26f54b
commit 191cc6d16d
1 changed files with 4 additions and 4 deletions

View File

@ -823,12 +823,12 @@ void FOOTPRINT_EDIT_FRAME::Select_Active_Library()
setLibNickName( dlg.GetTextSelection() ); setLibNickName( dlg.GetTextSelection() );
wxString uri = m_footprintLibTable->FindRow( dlg.GetTextSelection() )->GetFullURI(); wxString uri = m_footprintLibTable->FindRow( dlg.GetTextSelection() )->GetFullURI();
wxFileName fileName = FP_LIB_TABLE::ExpandSubstitutions( uri ); wxString fileName = FP_LIB_TABLE::ExpandSubstitutions( uri );
wxLogDebug( wxT( "Loading footprint library <%s> from <%s>." ), wxLogDebug( wxT( "Loading footprint library <%s> with uri <%s> from <%s>." ),
GetChars( dlg.GetTextSelection() ), GetChars( fileName.GetFullPath() ) ); GetChars( dlg.GetTextSelection() ), GetChars( uri ), GetChars( fileName ) );
setLibPath( fileName.GetFullPath() ); setLibPath( fileName );
updateTitle(); updateTitle();
} }