Commit 024bf9dd authored by Maciej Suminski's avatar Maciej Suminski

Fixed GAL canvas freeze when ordered twice to change to the same GAL canvas (e.g. double F11).

parent ba275918
...@@ -194,14 +194,14 @@ void EDA_DRAW_PANEL_GAL::StopDrawing() ...@@ -194,14 +194,14 @@ void EDA_DRAW_PANEL_GAL::StopDrawing()
void EDA_DRAW_PANEL_GAL::SwitchBackend( GalType aGalType ) void EDA_DRAW_PANEL_GAL::SwitchBackend( GalType aGalType )
{ {
// Protect from refreshing during backend switch
m_pendingRefresh = true;
m_refreshTimer.Stop();
// Do not do anything if the currently used GAL is correct // Do not do anything if the currently used GAL is correct
if( aGalType == m_currentGal && m_gal != NULL ) if( aGalType == m_currentGal && m_gal != NULL )
return; return;
// Prevent refreshing canvas during backend switch
m_pendingRefresh = true;
m_refreshTimer.Stop();
delete m_gal; delete m_gal;
switch( aGalType ) switch( aGalType )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment