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