Clear dimension pointer after committing.

Fixes https://gitlab.com/kicad/code/kicad/issues/11864

(cherry picked from commit b80fd5329d)
This commit is contained in:
Jeff Young 2022-07-21 13:19:40 +01:00
parent 5214290000
commit 3f448a7eaa
1 changed files with 1 additions and 0 deletions

View File

@ -989,6 +989,7 @@ int DRAWING_TOOL::DrawDimension( const TOOL_EVENT& aEvent )
if( ++step >= FINISHED )
{
dimension = nullptr;
step = SET_ORIGIN;
m_controls->SetAutoPan( false );
m_controls->CaptureCursor( false );