Drawing tools reset its state on layer change.

This commit is contained in:
Maciej Suminski 2014-07-15 11:41:55 +02:00
parent 8d91587863
commit a1e08ae568
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ bool DRAWING_TOOL::drawSegment( int aShape, DRAWSEGMENT*& aGraphic,
updatePreview = true; updatePreview = true;
} }
if( evt->IsCancel() || evt->IsActivate() ) if( evt->IsCancel() || evt->IsActivate() || evt->IsAction( &COMMON_ACTIONS::layerChanged ) )
{ {
preview.Clear(); preview.Clear();
updatePreview = true; updatePreview = true;