From bb8aa70ad0315dc2761931606cd553290198001e Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Fri, 25 Sep 2020 21:20:54 -0400 Subject: [PATCH] Fix copy pasta --- pcbnew/swig/pcbnew_scripting_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/swig/pcbnew_scripting_helpers.cpp b/pcbnew/swig/pcbnew_scripting_helpers.cpp index 91d4a17619..fd91e5ab85 100644 --- a/pcbnew/swig/pcbnew_scripting_helpers.cpp +++ b/pcbnew/swig/pcbnew_scripting_helpers.cpp @@ -323,7 +323,7 @@ bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits, wxCHECK( engine, false ); - wxFileName fn = GetBoard()->GetFileName(); + wxFileName fn = aBoard->GetFileName(); fn.SetExt( DesignRulesFileExtension ); wxString drcRulesPath = s_SettingsManager->Prj().AbsolutePath( fn.GetFullName() );