From 191cc6d16dbd5c3ac7a2f79194b2963651873e84 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Sat, 5 Oct 2013 19:41:40 -0400 Subject: [PATCH] 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. --- pcbnew/librairi.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/librairi.cpp b/pcbnew/librairi.cpp index c1f82899ff..3054b367fd 100644 --- a/pcbnew/librairi.cpp +++ b/pcbnew/librairi.cpp @@ -823,12 +823,12 @@ void FOOTPRINT_EDIT_FRAME::Select_Active_Library() setLibNickName( dlg.GetTextSelection() ); 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>." ), - GetChars( dlg.GetTextSelection() ), GetChars( fileName.GetFullPath() ) ); + wxLogDebug( wxT( "Loading footprint library <%s> with uri <%s> from <%s>." ), + GetChars( dlg.GetTextSelection() ), GetChars( uri ), GetChars( fileName ) ); - setLibPath( fileName.GetFullPath() ); + setLibPath( fileName ); updateTitle(); }