From 0a2a3c99031b871dc982b2d9be49d7a4695d10af Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 19 Jan 2021 10:56:43 +0000 Subject: [PATCH] Fix Coverity-discovered typo. --- pcbnew/tools/pcb_point_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/pcb_point_editor.cpp b/pcbnew/tools/pcb_point_editor.cpp index 2c3166869c..54b9743644 100644 --- a/pcbnew/tools/pcb_point_editor.cpp +++ b/pcbnew/tools/pcb_point_editor.cpp @@ -504,7 +504,7 @@ int PCB_POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent ) else pos.x = last.x; - if( abs( delta.y ) > grid.GetGrid().x / 2 ) + if( abs( delta.y ) > grid.GetGrid().y / 2 ) pos.y = last.y + deltaGrid.y; else pos.y = last.y;