Disable autopanning & cursor capture when drawing is finished

This commit is contained in:
Maciej Suminski 2017-03-23 14:15:34 +01:00
parent 0799d9e45c
commit f2763e90ea
1 changed files with 4 additions and 0 deletions

View File

@ -1070,6 +1070,8 @@ bool DRAWING_TOOL::drawSegment( int aShape, DRAWSEGMENT*& aGraphic,
}
m_view->Remove( &preview );
m_controls->SetAutoPan( false );
m_controls->CaptureCursor( false );
return started;
}
@ -1203,6 +1205,8 @@ bool DRAWING_TOOL::drawArc( DRAWSEGMENT*& aGraphic )
preview.Remove( aGraphic );
m_view->Remove( &arcAsst );
m_view->Remove( &preview );
m_controls->SetAutoPan( false );
m_controls->CaptureCursor( false );
return !arcManager.IsReset();
}