Pcbnew: Fix crashes when delete footprint text in some cases.

Fixes #4221
https://gitlab.com/kicad/code/kicad/issues/4221
This commit is contained in:
jean-pierre charras 2020-04-18 20:00:26 +02:00
parent 3a614a8ea1
commit a3e087ab51
2 changed files with 894 additions and 894 deletions

View File

@ -468,7 +468,7 @@ void PCB_EDIT_FRAME::Exchange_Module( MODULE* aSrc, MODULE* aDest, BOARD_COMMIT&
if( destItem )
processTextItem( *srcItem, *destItem, false, resetTextLayers, resetTextEffects );
else if( !deleteExtraTexts )
aDest->GraphicalItemsList().Append( new TEXTE_MODULE( *srcItem ) );
aDest->Add( new TEXTE_MODULE( *srcItem ) );
}
}

File diff suppressed because it is too large Load Diff