Drawing tools reset its state on layer change.
This commit is contained in:
parent
8d91587863
commit
a1e08ae568
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue