diff --git a/eeschema/sch_plugins/ltspice/ltspice_schematic.cpp b/eeschema/sch_plugins/ltspice/ltspice_schematic.cpp index 2896f4f883..31cfb92f4f 100644 --- a/eeschema/sch_plugins/ltspice/ltspice_schematic.cpp +++ b/eeschema/sch_plugins/ltspice/ltspice_schematic.cpp @@ -756,6 +756,8 @@ std::vector LTSPICE_SCHEMATIC::StructureBuilder() ascFile.SheetSize = VECTOR2I( 0, 0 ); ascFile.Symbols = symbolArray; + ascFile.Version = 0; + ascFile.SheetNumber = 0; int lineNumber = 1; diff --git a/pcbnew/convert_shape_list_to_polygon.cpp b/pcbnew/convert_shape_list_to_polygon.cpp index 10dcc8173a..e0ad590896 100644 --- a/pcbnew/convert_shape_list_to_polygon.cpp +++ b/pcbnew/convert_shape_list_to_polygon.cpp @@ -330,7 +330,6 @@ bool ConvertOutlineToPolygon( std::vector& aShapeList, SHAPE_POLY_SE VECTOR2I pstart = graphic->GetStart(); VECTOR2I pmid = graphic->GetArcMid(); VECTOR2I pend = graphic->GetEnd(); - VECTOR2I pcenter = graphic->GetCenter(); if( !close_enough( prevPt, pstart, aChainingEpsilon ) ) { diff --git a/pcbnew/exporters/step/step_pcb_model.cpp b/pcbnew/exporters/step/step_pcb_model.cpp index 9e969f82f6..8f456c0af5 100644 --- a/pcbnew/exporters/step/step_pcb_model.cpp +++ b/pcbnew/exporters/step/step_pcb_model.cpp @@ -434,12 +434,15 @@ void STEP_PCB_MODEL::OCCSetMergeMaxDistance( double aDistance ) BRepBuilderAPI::Precision( m_mergeOCCMaxDist ); } + bool STEP_PCB_MODEL::isBoardOutlineValid() { return m_pcb_labels.size() > 0; } -// A helper function to know if a SHAPE_LINE_CHAIN is encoding a circle + +// A helper function to know if a SHAPE_LINE_CHAIN is encoding a circle (now unused) +#if 0 static bool IsChainCircle( const SHAPE_LINE_CHAIN& aChain ) { // If aChain is a circle it @@ -457,6 +460,8 @@ static bool IsChainCircle( const SHAPE_LINE_CHAIN& aChain ) return false; } +#endif + bool STEP_PCB_MODEL::MakeShapeAsCylinder( TopoDS_Shape& aShape, const SHAPE_LINE_CHAIN& aChain, double aThickness, @@ -714,13 +719,10 @@ bool STEP_PCB_MODEL::MakeShapes( std::vector& aShapes, const SHAPE lastPt = aChain.CPoint( i ); bool isArc = aChain.IsArcSegment( i ); - int arcindex = isArc ? aChain.ArcIndex( i ) : -1; if( aChain.IsArcStart( i ) ) { const SHAPE_ARC& currentArc = aChain.Arc( aChain.ArcIndex( i ) ); - int nextShape = aChain.NextShape( i ); - bool isLastShape = nextShape < 0; if( isFirstShape ) {