Fix issue with updating Footprint graphic items.

dyn_cast doesn't handle inheritance.
This commit is contained in:
Jeff Young 2018-10-16 17:06:46 +01:00
parent 84c14c2971
commit 51deb9d562
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ void DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem( BOARD_COMMIT& aCommit, B
aCommit.Modify( aItem );
auto textItem = dynamic_cast<EDA_TEXT*>( aItem );
auto drawItem = dyn_cast<DRAWSEGMENT*>( aItem );
auto drawItem = dynamic_cast<DRAWSEGMENT*>( aItem );
auto moduleTextItem = dyn_cast<TEXTE_MODULE*>( aItem );
if( m_setToSpecifiedValues->GetValue() )