Prevent weird viewport settings after switching twice to GAL canvas.

This commit is contained in:
Maciej Suminski 2015-06-18 17:51:52 +02:00
parent fa3d074ca4
commit b3d4a680fa
1 changed files with 3 additions and 0 deletions

View File

@ -1022,6 +1022,9 @@ void EDA_DRAW_FRAME::AdjustScrollBars( const wxPoint& aCenterPositionIU )
void EDA_DRAW_FRAME::UseGalCanvas( bool aEnable )
{
if( m_galCanvasActive == aEnable )
return;
KIGFX::VIEW* view = GetGalCanvas()->GetView();
KIGFX::GAL* gal = GetGalCanvas()->GetGAL();