Fix auto units to work when drawing new dimensions
This commit is contained in:
parent
0347515cec
commit
e40287d327
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue