Fix auto units to work when drawing new dimensions

This commit is contained in:
Jon Evans 2020-09-12 10:30:33 -04:00
parent 0347515cec
commit e40287d327
1 changed files with 3 additions and 0 deletions

View File

@ -747,6 +747,9 @@ int DRAWING_TOOL::DrawDimension( const TOOL_EVENT& aEvent )
dimension->SetStart( (wxPoint) cursorPos );
dimension->SetEnd( (wxPoint) cursorPos );
if( boardSettings.m_DimensionUnitsMode == DIM_UNITS_MODE::AUTOMATIC )
dimension->SetUnits( m_frame->GetUserUnits(), false );
preview.Add( dimension );
m_controls->SetAutoPan( true );