From 04c46a8fd2b4393e2c8295b82f56ebee1fe5dfef Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 7 Jan 2022 09:08:40 -0800 Subject: [PATCH] Correct return type in mapCoords --- eeschema/tools/ee_tool_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/tools/ee_tool_base.h b/eeschema/tools/ee_tool_base.h index c24398aad9..6be5eb3178 100644 --- a/eeschema/tools/ee_tool_base.h +++ b/eeschema/tools/ee_tool_base.h @@ -187,12 +187,12 @@ inline VECTOR2I mapCoords( const wxPoint& aCoord ) inline VECTOR2I mapCoords( const VECTOR2I& aCoord ) { - return wxPoint( aCoord.x, -aCoord.y ); + return VECTOR2I( aCoord.x, -aCoord.y ); } inline VECTOR2I mapCoords( const int x, const int y ) { - return wxPoint( x, -y ); + return VECTOR2I( x, -y ); } #endif