From 5da8e700ced1a89e08bae22908629f2b3f5403f8 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 6 May 2021 15:42:15 -0400 Subject: [PATCH] Eeschema: fix BOM path bug in stand alone mode. Fixes https://gitlab.com/kicad/code/kicad/-/issues/8180 --- eeschema/dialogs/dialog_bom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/dialogs/dialog_bom.cpp b/eeschema/dialogs/dialog_bom.cpp index 1ac4d7009a..285bf60f54 100644 --- a/eeschema/dialogs/dialog_bom.cpp +++ b/eeschema/dialogs/dialog_bom.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2019 Jean-Pierre Charras, jp.charras at wanadoo.fr - * Copyright (C) 1992-2020 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 1992-2021 KiCad Developers, see AUTHORS.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 @@ -85,7 +85,8 @@ private: void pluginInit(); void installGeneratorsList(); - BOM_GENERATOR_HANDLER* addGenerator( const wxString& aPath, const wxString& aName = wxEmptyString ); + BOM_GENERATOR_HANDLER* addGenerator( const wxString& aPath, + const wxString& aName = wxEmptyString ); bool pluginExists( const wxString& aName ); BOM_GENERATOR_HANDLER* selectedGenerator() @@ -326,7 +327,6 @@ void DIALOG_BOM::OnRunGenerator( wxCommandEvent& event ) // Calculate the xml netlist filename wxFileName fn = m_parent->Schematic().GetFileName(); - fn.SetPath( wxPathOnly( Prj().GetProjectFullName() ) ); fn.ClearExt(); wxString fullfilename = fn.GetFullPath();