DIALOG_PAD_PRIMITIVES_PROPERTIES: fix incorrect display of polygon primitive.
Fixes #13557 https://gitlab.com/kicad/code/kicad/issues/13557
This commit is contained in:
parent
a3a01a87e8
commit
c4ccf46cc7
|
@ -2,7 +2,7 @@
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* 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) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 1992-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -527,7 +527,8 @@ void DIALOG_PAD_PRIMITIVE_POLY_PROPS::onPaintPolyPanel( wxPaintEvent& event )
|
||||||
if( jj >= m_currPoints.size() )
|
if( jj >= m_currPoints.size() )
|
||||||
jj = 0;
|
jj = 0;
|
||||||
|
|
||||||
GRLine( &dc, m_currPoints[ii] * scale, m_currPoints[jj] * scale,
|
GRLine( &dc, m_currPoints[ii].x * scale, m_currPoints[ii].y * scale,
|
||||||
|
m_currPoints[jj].x * scale, m_currPoints[jj].y * scale,
|
||||||
m_thickness.GetValue() * scale, color );
|
m_thickness.GetValue() * scale, color );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue