Commit 191cc6d1 authored by Wayne Stambaugh's avatar Wayne Stambaugh

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.
parent ec7f26f5
...@@ -823,12 +823,12 @@ void FOOTPRINT_EDIT_FRAME::Select_Active_Library() ...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment