From 93e32680307f85d8146b051686f3fe97a0e5ba40 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 1 Aug 2020 00:16:10 +0100 Subject: [PATCH] OnPixelInUI is meant to be a scaling factor, not a vector. Fixes https://gitlab.com/kicad/code/kicad/issues/4669 --- pcbnew/collectors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/collectors.h b/pcbnew/collectors.h index 31a211cb88..042b6b517e 100644 --- a/pcbnew/collectors.h +++ b/pcbnew/collectors.h @@ -465,7 +465,7 @@ public: m_IgnoreTracks = false; m_IgnoreZoneFills = true; - m_OnePixelInIU = aView->ToWorld( one, false ).x; + m_OnePixelInIU = abs( aView->ToWorld( one, false ).x ); } /**