From e40287d327fd5bd9f516451f3414ca18b803d5a9 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 12 Sep 2020 10:30:33 -0400 Subject: [PATCH] Fix auto units to work when drawing new dimensions --- pcbnew/tools/drawing_tool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 19089a378a..ccb0685ad3 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -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 );