Tool indicator is resetted on canvas switch.

This commit is contained in:
Maciej Suminski 2014-07-09 15:10:32 +02:00
parent 23b113b0c3
commit 3e3626728a
1 changed files with 3 additions and 0 deletions

View File

@ -1033,6 +1033,9 @@ void EDA_DRAW_FRAME::UseGalCanvas( bool aEnable )
m_auimgr.GetPane( wxT( "DrawFrameGal" ) ).Show( aEnable );
m_auimgr.Update();
// Reset current tool on switch();
SetToolID( ID_NO_TOOL_SELECTED, wxCURSOR_DEFAULT, wxEmptyString );
m_galCanvasActive = aEnable;
}