GetFullPath() includes filename; we just want GetPath()

Fixes: lp:1785891
* https://bugs.launchpad.net/kicad/+bug/1785891
This commit is contained in:
Jeff Young
2018-08-07 22:04:09 +01:00
parent d63d0c40ef
commit 9b44100e04
+1 -1
View File
@@ -2118,7 +2118,7 @@ void PCB_IO::FootprintSave( const wxString& aLibraryPath, const MODULE* aFootpri
module->Flip( module->GetPosition() );
wxLogTrace( traceKicadPcbPlugin, wxT( "Creating s-expr footprint file '%s'." ), fullPath );
mods.insert( footprintName, new FP_CACHE_ITEM( module, WX_FILENAME( fullPath, fullName ) ) );
mods.insert( footprintName, new FP_CACHE_ITEM( module, WX_FILENAME( fn.GetPath(), fullName ) ) );
m_cache->Save( module );
}