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 ) ); } }