Prevent weird viewport settings after switching twice to GAL canvas.
This commit is contained in:
parent
fa3d074ca4
commit
b3d4a680fa
|
@ -1022,6 +1022,9 @@ void EDA_DRAW_FRAME::AdjustScrollBars( const wxPoint& aCenterPositionIU )
|
||||||
|
|
||||||
void EDA_DRAW_FRAME::UseGalCanvas( bool aEnable )
|
void EDA_DRAW_FRAME::UseGalCanvas( bool aEnable )
|
||||||
{
|
{
|
||||||
|
if( m_galCanvasActive == aEnable )
|
||||||
|
return;
|
||||||
|
|
||||||
KIGFX::VIEW* view = GetGalCanvas()->GetView();
|
KIGFX::VIEW* view = GetGalCanvas()->GetView();
|
||||||
KIGFX::GAL* gal = GetGalCanvas()->GetGAL();
|
KIGFX::GAL* gal = GetGalCanvas()->GetGAL();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue