Clear dimension pointer after committing.

Fixes https://gitlab.com/kicad/code/kicad/issues/11864
This commit is contained in:
Jeff Young 2022-07-21 13:19:40 +01:00
parent 004abcd370
commit b80fd5329d
1 changed files with 1 additions and 0 deletions

View File

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