Avoid adding invalid text to temporary fp
Adding values/references to footprint text is an assertion. This avoids the assert when copying a full footprint by skipping the extra text
This commit is contained in:
parent
3496f3c787
commit
c23e39dbe7
|
@ -107,6 +107,12 @@ void CLIPBOARD_IO::SaveSelection( const PCB_SELECTION& aSelected, bool isFootpri
|
||||||
const PCB_GROUP* group = dynamic_cast<const PCB_GROUP*>( item );
|
const PCB_GROUP* group = dynamic_cast<const PCB_GROUP*>( item );
|
||||||
BOARD_ITEM* clone;
|
BOARD_ITEM* clone;
|
||||||
|
|
||||||
|
if( const FP_TEXT* text = dyn_cast<const FP_TEXT*>( item ) )
|
||||||
|
{
|
||||||
|
if( text->GetType() != FP_TEXT::TEXT_is_DIVERS )
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if( group )
|
if( group )
|
||||||
clone = static_cast<BOARD_ITEM*>( group->DeepClone() );
|
clone = static_cast<BOARD_ITEM*>( group->DeepClone() );
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue