From b18e3f5372907f9d234ba96d3cbe5efd45b11b8d Mon Sep 17 00:00:00 2001 From: "marco." Date: Thu, 6 Dec 2012 19:10:00 +0100 Subject: [PATCH] MacOSX: Fixes the append always beaviour of cvpcb when reading netlists --- cvpcb/readschematicnetlist.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cvpcb/readschematicnetlist.cpp b/cvpcb/readschematicnetlist.cpp index 41ec52afc0..06e0a36bbf 100644 --- a/cvpcb/readschematicnetlist.cpp +++ b/cvpcb/readschematicnetlist.cpp @@ -71,6 +71,9 @@ int CVPCB_MAINFRAME::ReadSchematicNetlist() // True to read footprint filters section: true for CvPcb, false for Pcbnew netList_Reader.ReadLibpartSectionSetOpt( true ); + // on OSX otherwise reloading a file you will see duplicates + m_components.clear(); + bool success = netList_Reader.ReadNetList( netfile ); if( !success ) {