From 5edf3503ca9b916d061f0a454151d808133c32f4 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 3 Feb 2019 15:29:41 +0100 Subject: [PATCH] Symbol Editor: Switching from a multi unit symbol to a single unit symbol do not reset the unit selection. Thus creating issue if the unit selection is not the first unit. Fixes: lp:1814441 https://bugs.launchpad.net/kicad/+bug/1814441 --- eeschema/libedit/libedit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/libedit/libedit.cpp b/eeschema/libedit/libedit.cpp index 7756a36069..d2951b1d4b 100644 --- a/eeschema/libedit/libedit.cpp +++ b/eeschema/libedit/libedit.cpp @@ -1,9 +1,9 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr + * Copyright (C) 2019 Jean-Pierre Charras, jp.charras at wanadoo.fr * Copyright (C) 2008 Wayne Stambaugh - * Copyright (C) 2004-2017 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2004-2019 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -642,7 +642,7 @@ void LIB_EDIT_FRAME::loadPart( const wxString& aAlias, const wxString& aLibrary, // and if units are interchangeable, graphic items are common to units m_drawSpecificUnit = part->UnitsLocked() ? true : false; - LoadOneLibraryPartAux( alias, aLibrary, m_unit, 0 ); + LoadOneLibraryPartAux( alias, aLibrary, aUnit, 0 ); }