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:
parent
3a614a8ea1
commit
a3e087ab51
|
@ -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
Loading…
Reference in New Issue