Fix sch plot output path handling

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19483
This commit is contained in:
Marek Roszko
2025-01-04 08:10:20 -05:00
parent d31103846f
commit 2ee3ee341a
5 changed files with 12 additions and 15 deletions
+1 -4
View File
@@ -163,10 +163,7 @@ int CLI::SCH_EXPORT_PLOT_COMMAND::doPerform( KIWAY& aKiway )
plotJob->m_theme = From_UTF8( m_argParser.get<std::string>( ARG_THEME ).c_str() );
}
if( m_outputArgExpectsDir )
plotJob->m_outputDirectory = m_argOutput;
else
plotJob->m_outputFile = m_argOutput;
plotJob->SetOutputPath( m_argOutput );
plotJob->m_plotAll = plotJob->m_plotPages.size() == 0;