Disable autopanning & cursor capture when drawing is finished
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user