From 8f4486752dec5efa9a99f9c58da6d91f1b6df5a5 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 18 Jan 2023 10:20:20 -0800 Subject: [PATCH] Fix build error --- pcbnew/dialogs/panel_setup_formatting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/panel_setup_formatting.cpp b/pcbnew/dialogs/panel_setup_formatting.cpp index 78323f46de..537a1775f4 100644 --- a/pcbnew/dialogs/panel_setup_formatting.cpp +++ b/pcbnew/dialogs/panel_setup_formatting.cpp @@ -75,7 +75,7 @@ bool PANEL_SETUP_FORMATTING::TransferDataFromWindow() view->UpdateAllItemsConditionally( KIGFX::REPAINT, [] ( KIGFX::VIEW_ITEM* aItem ) -> bool { - EDA_ITEM* item = dynamic_cast( aItem ); + const EDA_ITEM* item = dynamic_cast( aItem ); if( !item ) return false;