From 8f778b5a0faf40de711b0ab0ecb34991fc48a31b Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Wed, 22 Jan 2020 12:26:27 -0500 Subject: [PATCH] Eeschema: fix sheet Eagle plugin sheet placement bug. Convert sheet position units from mils to internal units. --- eeschema/sch_eagle_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_eagle_plugin.cpp b/eeschema/sch_eagle_plugin.cpp index a449a3b3f3..7195843c57 100644 --- a/eeschema/sch_eagle_plugin.cpp +++ b/eeschema/sch_eagle_plugin.cpp @@ -2,6 +2,8 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2017 CERN + * Copyright (C) 2017-2019 Kicad Developers, see AUTHORS.txt for contributors. + * * @author Alejandro GarcĂ­a Montoro * @author Maciej Suminski * @author Russell Oliver @@ -582,7 +584,7 @@ void SCH_EAGLE_PLUGIN::loadSchematic( wxXmlNode* aSchematicNode ) while( sheetNode ) { - wxPoint pos = wxPoint( x * 1000, y * 1000 ); + wxPoint pos = wxPoint( x * Mils2iu( 1000 ), y * Mils2iu( 1000 ) ); std::unique_ptr sheet( new SCH_SHEET( pos ) ); SCH_SCREEN* screen = new SCH_SCREEN( m_kiway );