Fix a typo which leads to a bogus type-cast.

Fixes https://gitlab.com/kicad/code/kicad/issues/11886
This commit is contained in:
Jeff Young 2022-06-27 23:06:40 -06:00
parent 83a2f43661
commit ab9c42d427
1 changed files with 1 additions and 1 deletions

View File

@ -1005,7 +1005,7 @@ int PCB_CONTROL::placeBoardItems( std::vector<BOARD_ITEM*>& aItems, bool aIsNew,
for( BOARD_ITEM* dwg : footprint->GraphicalItems() )
{
if( BaseType( dwg->Type() ) == PCB_DIMENSION_T )
updateDimensionUnits( static_cast<PCB_DIMENSION_BASE*>( item ) );
updateDimensionUnits( static_cast<PCB_DIMENSION_BASE*>( dwg ) );
}
}