Browse Source

Fix problem in groups QA test

The items should always be added to the group.
pull/16/head
Ian McInerney 5 years ago
parent
commit
4ca103c82c
  1. 4
      qa/pcbnew/group_saveload.cpp

4
qa/pcbnew/group_saveload.cpp

@ -122,9 +122,7 @@ std::unique_ptr<BOARD> createBoard( const std::vector<std::vector<ItemType>>& sp
for( ItemType item : groupSpec )
{
used.set( static_cast<size_t>( item ) );
if( item != REMOVED_TEXT || item != REMOVED_GROUP )
group->AddItem( items[item] );
group->AddItem( items[item] );
}
BOOST_CHECK_EQUAL( group->GetItems().size(), groupSpec.size() );

Loading…
Cancel
Save