Use the right path for loading drawing sheet in pcbnew cli

This commit is contained in:
Marek Roszko 2023-09-05 11:01:57 -04:00
parent a3df8f8a97
commit f894f7ec4c
1 changed files with 1 additions and 1 deletions

View File

@ -1056,7 +1056,7 @@ void PCBNEW_JOBS_HANDLER::loadOverrideDrawingSheet( BOARD* aBrd, const wxString&
BASE_SCREEN::m_DrawingSheetFileName = path;
wxString filename = DS_DATA_MODEL::ResolvePath( BASE_SCREEN::m_DrawingSheetFileName,
aBrd->GetProject()->GetProjectPath() );
if( !DS_DATA_MODEL::GetTheInstance().LoadDrawingSheet( path ) )
if( !DS_DATA_MODEL::GetTheInstance().LoadDrawingSheet( filename ) )
{
m_reporter->Report( wxString::Format( _( "Error loading drawing sheet '%s'." ), path ),
RPT_SEVERITY_ERROR );