Browse Source

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
6.0.7
Seth Hillbrand 4 years ago
parent
commit
c23e39dbe7
  1. 6
      pcbnew/kicad_clipboard.cpp

6
pcbnew/kicad_clipboard.cpp

@ -107,6 +107,12 @@ void CLIPBOARD_IO::SaveSelection( const PCB_SELECTION& aSelected, bool isFootpri
const PCB_GROUP* group = dynamic_cast<const PCB_GROUP*>( item );
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 )
clone = static_cast<BOARD_ITEM*>( group->DeepClone() );
else

Loading…
Cancel
Save