From 4ca103c82cd45fe15e2db304ec6ab6c635127e83 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 16 Sep 2020 10:50:59 +0100 Subject: [PATCH] Fix problem in groups QA test The items should always be added to the group. --- qa/pcbnew/group_saveload.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qa/pcbnew/group_saveload.cpp b/qa/pcbnew/group_saveload.cpp index aac039464a..dff2c49fc6 100644 --- a/qa/pcbnew/group_saveload.cpp +++ b/qa/pcbnew/group_saveload.cpp @@ -122,9 +122,7 @@ std::unique_ptr createBoard( const std::vector>& sp for( ItemType item : groupSpec ) { used.set( static_cast( item ) ); - - if( item != REMOVED_TEXT || item != REMOVED_GROUP ) - group->AddItem( items[item] ); + group->AddItem( items[item] ); } BOOST_CHECK_EQUAL( group->GetItems().size(), groupSpec.size() );