Plot SVG: fix issue with arcs (bug #1328155 ) both in Pcbnew and Eeschema.
This commit is contained in:
parent
8cb3423262
commit
737ef50cc0
|
@ -346,7 +346,7 @@ void SVG_PLOTTER::Arc( const wxPoint& centre, double StAngle, double EndAngle, i
|
|||
DPOINT centre_dev = userToDeviceCoordinates( centre );
|
||||
double radius_dev = userToDeviceSize( radius );
|
||||
|
||||
if( m_yaxisReversed ) // Should be always the case
|
||||
if( !m_yaxisReversed ) // Should be never the case
|
||||
{
|
||||
double tmp = StAngle;
|
||||
StAngle = -EndAngle;
|
||||
|
|
|
@ -394,16 +394,10 @@ void BRDITEMS_PLOTTER::Plot_1_EdgeModule( EDGE_MODULE* aEdge )
|
|||
case S_ARC:
|
||||
{
|
||||
radius = KiROUND( GetLineLength( end, pos ) );
|
||||
|
||||
double startAngle = ArcTangente( end.y - pos.y, end.x - pos.x );
|
||||
|
||||
double endAngle = startAngle + aEdge->GetAngle();
|
||||
|
||||
if ( ( GetFormat() == PLOT_FORMAT_DXF ) &&
|
||||
( m_layerMask & ( SILKSCREEN_LAYER_BACK | DRAW_LAYER | COMMENT_LAYER ) ) )
|
||||
m_plotter->ThickArc( pos, -startAngle, -endAngle, radius, thickness, GetMode() );
|
||||
else
|
||||
m_plotter->ThickArc( pos, -endAngle, -startAngle, radius, thickness, GetMode() );
|
||||
m_plotter->ThickArc( pos, -endAngle, -startAngle, radius, thickness, GetMode() );
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue