Support >180 deg arcs in schematic.

This commit is contained in:
Alex Shvartzkop
2023-08-07 14:18:38 +03:00
parent d03c3d0f6d
commit 717ee350c8
16 changed files with 117 additions and 154 deletions
+3 -2
View File
@@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2020-2022 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2020-2023 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -548,7 +548,8 @@ void PS_PLOTTER::Arc( const VECTOR2I& aCenter, const VECTOR2I& aStart, const VEC
EDA_ANGLE endAngle( mapCoords( end_device - center_device ) );
// userToDeviceCoordinates gets our start/ends out of order
std::swap( startAngle, endAngle );
if( !m_plotMirror )
std::swap( startAngle, endAngle );
SetCurrentLineWidth( aWidth );