diff --git a/common/jobs/job_export_sch_netlist.h b/common/jobs/job_export_sch_netlist.h index e1376e6fe7..eacb13aac5 100644 --- a/common/jobs/job_export_sch_netlist.h +++ b/common/jobs/job_export_sch_netlist.h @@ -32,6 +32,7 @@ public: m_filename(), m_outputFile() { + format = FORMAT::KICADSEXPR; } wxString m_filename; diff --git a/pcbnew/pcbnew_jobs_handler.cpp b/pcbnew/pcbnew_jobs_handler.cpp index b49cc67648..41162650b2 100644 --- a/pcbnew/pcbnew_jobs_handler.cpp +++ b/pcbnew/pcbnew_jobs_handler.cpp @@ -403,14 +403,14 @@ int PCBNEW_JOBS_HANDLER::JobExportPos( JOB* aJob ) aPosJob->m_outputFile = fn.GetFullName(); } - FILE* file = nullptr; - file = wxFopen( aPosJob->m_outputFile, wxS( "wt" ) ); - - if( file == nullptr ) - return CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT; - if( aPosJob->m_format == JOB_EXPORT_PCB_POS::FORMAT::ASCII || aPosJob->m_format == JOB_EXPORT_PCB_POS::FORMAT::CSV ) { + FILE* file = nullptr; + file = wxFopen( aPosJob->m_outputFile, wxS( "wt" ) ); + + if( file == nullptr ) + return CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT; + std::string data; bool frontSide = aPosJob->m_side == JOB_EXPORT_PCB_POS::SIDE::FRONT diff --git a/pcbnew/tools/pcb_point_editor.cpp b/pcbnew/tools/pcb_point_editor.cpp index 780948b58a..3e203c86d1 100644 --- a/pcbnew/tools/pcb_point_editor.cpp +++ b/pcbnew/tools/pcb_point_editor.cpp @@ -1006,7 +1006,6 @@ void PCB_POINT_EDITOR::editArcMidKeepCenter( PCB_SHAPE* aArc, const VECTOR2I& aC int minRadius = EDA_UNIT_UTILS::Mils2IU( pcbIUScale, 1 ); SEG chord( aStart, aEnd ); - int newSide = chord.Side( aMid ); // Now, update the edit point position // Express the point in a circle-centered coordinate system.