From 51deb9d56266b466ed3857820a3fd46ab7092c42 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 16 Oct 2018 17:06:46 +0100 Subject: [PATCH] Fix issue with updating Footprint graphic items. dyn_cast doesn't handle inheritance. --- pcbnew/dialogs/dialog_global_edit_text_and_graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_global_edit_text_and_graphics.cpp b/pcbnew/dialogs/dialog_global_edit_text_and_graphics.cpp index d1b426554d..27875cd93c 100644 --- a/pcbnew/dialogs/dialog_global_edit_text_and_graphics.cpp +++ b/pcbnew/dialogs/dialog_global_edit_text_and_graphics.cpp @@ -223,7 +223,7 @@ void DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem( BOARD_COMMIT& aCommit, B aCommit.Modify( aItem ); auto textItem = dynamic_cast( aItem ); - auto drawItem = dyn_cast( aItem ); + auto drawItem = dynamic_cast( aItem ); auto moduleTextItem = dyn_cast( aItem ); if( m_setToSpecifiedValues->GetValue() )