From f73b9a55a7009f2a860549b234bfef6c72e08b65 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 11 May 2018 10:23:40 +0200 Subject: [PATCH] Fixed an assert in DHEAD::append() The previous one incorrectly expected the appended items to belong to the target list, instead of the source list. --- common/dlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/dlist.cpp b/common/dlist.cpp index 19515873ea..6c8d794141 100644 --- a/common/dlist.cpp +++ b/common/dlist.cpp @@ -101,7 +101,7 @@ void DHEAD::append( DHEAD& aList ) // Change the item's list to me. for( EDA_ITEM* item = aList.first; item; item = item->Next() ) { - CHECK_OWNERSHIP( item ); + wxASSERT( item->GetList() == &aList ); item->SetList( this ); }