From 8151ec387cd398b4a574faf85bdb006fa5e6eaf6 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Fri, 7 Oct 2016 15:04:21 -0400 Subject: [PATCH] Pcbnew: fix drill file naming issue. On windows when the project path include a remote volume name (\\NAME), the volume name does not get cleared by calling wxFileName.SetDir( "" ). This caused the volume name to be prepended to the file name when calling wxFileName::GetFullPath(). Use wxFileName::GetFullName() which resolves the issue. Fixes lp:1606240 https://bugs.launchpad.net/kicad/+bug/1606240 --- pcbnew/exporters/gendrill_Excellon_writer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pcbnew/exporters/gendrill_Excellon_writer.cpp b/pcbnew/exporters/gendrill_Excellon_writer.cpp index b6d0bfe6d0..2a607f7688 100644 --- a/pcbnew/exporters/gendrill_Excellon_writer.cpp +++ b/pcbnew/exporters/gendrill_Excellon_writer.cpp @@ -7,7 +7,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 1992-2012 Jean_Pierre Charras - * Copyright (C) 1992-2012 KiCad Developers, see change_log.txt for contributors. + * Copyright (C) 1992-2016 KiCad Developers, see change_log.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -772,10 +772,9 @@ const wxString EXCELLON_WRITER::drillFileName( LAYER_PAIR aPair, bool aNPTH ) co wxFileName fn = m_pcb->GetFileName(); fn.SetName( fn.GetName() + extend ); - fn.SetPath( "" ); fn.SetExt( DrillFileExtension ); - wxString ret = fn.GetFullPath(); // show me in debugger + wxString ret = fn.GetFullName(); // show me in debugger return ret; }