From 08938463f1c23b963925e16d7ff6cd99d3f57196 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 29 Oct 2021 20:40:19 +0100 Subject: [PATCH] Fix off-by-one error in via sizes. Fixes https://gitlab.com/kicad/code/kicad/issues/9486 --- pcbnew/dialogs/dialog_track_via_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_track_via_properties.cpp b/pcbnew/dialogs/dialog_track_via_properties.cpp index 1f3017de2f..debe586b24 100644 --- a/pcbnew/dialogs/dialog_track_via_properties.cpp +++ b/pcbnew/dialogs/dialog_track_via_properties.cpp @@ -279,7 +279,7 @@ DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParen && m_viaDiameter.GetValue() == viaDimension->m_Diameter && m_viaDrill.GetValue() == viaDimension->m_Drill ) { - viaSelection = ii; + viaSelection = ii - 1; } }