From 71bcc9883a305b07a5b6841436154ae13d30233a Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 5 Feb 2022 11:31:56 -0500 Subject: [PATCH] Fix typoed test condition for TH no hole pads PVS V501 (cherry picked from commit b9f1aaf02969593cdbb683789568b84606039007) --- pcbnew/footprint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index 090b7a1aa2..54c5a95792 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -2137,7 +2137,7 @@ void FOOTPRINT::CheckFootprintTHPadNoHoles( && pad->GetAttribute() != PAD_ATTRIB::NPTH ) continue; - if( pad->GetDrillSizeX() < 1 || pad->GetDrillSizeX() < 1 ) + if( pad->GetDrillSizeX() < 1 || pad->GetDrillSizeY() < 1 ) { wxString msg; msg.Printf( _( "(pad \"%s\")" ), pad->GetNumber() );