From 9b44100e049f5cd55874f6d2f2fcaaa04ff48e53 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 7 Aug 2018 22:03:13 +0100 Subject: [PATCH] GetFullPath() includes filename; we just want GetPath() Fixes: lp:1785891 * https://bugs.launchpad.net/kicad/+bug/1785891 --- pcbnew/kicad_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/kicad_plugin.cpp b/pcbnew/kicad_plugin.cpp index 9b66fb4c6c..2a98123c89 100644 --- a/pcbnew/kicad_plugin.cpp +++ b/pcbnew/kicad_plugin.cpp @@ -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 ); }