From c4ccf46cc7e3c9aea7e663e9278795086bedb305 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 16 Jan 2023 17:32:22 +0100 Subject: [PATCH] DIALOG_PAD_PRIMITIVES_PROPERTIES: fix incorrect display of polygon primitive. Fixes #13557 https://gitlab.com/kicad/code/kicad/issues/13557 --- pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp b/pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp index ef60792364..6536d2930f 100644 --- a/pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp @@ -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) 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 * 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() ) 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 ); }