From ab9c42d4274a3c26b861110450bbdd7e60352001 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 27 Jun 2022 23:06:40 -0600 Subject: [PATCH] Fix a typo which leads to a bogus type-cast. Fixes https://gitlab.com/kicad/code/kicad/issues/11886 --- pcbnew/tools/pcb_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/pcb_control.cpp b/pcbnew/tools/pcb_control.cpp index 97c765c5ad..426e92403e 100644 --- a/pcbnew/tools/pcb_control.cpp +++ b/pcbnew/tools/pcb_control.cpp @@ -1005,7 +1005,7 @@ int PCB_CONTROL::placeBoardItems( std::vector& aItems, bool aIsNew, for( BOARD_ITEM* dwg : footprint->GraphicalItems() ) { if( BaseType( dwg->Type() ) == PCB_DIMENSION_T ) - updateDimensionUnits( static_cast( item ) ); + updateDimensionUnits( static_cast( dwg ) ); } }