FOOTPRINT_VIEWER_FRAME: minor fix: initialize m_canvasType to the value actually used.

This commit is contained in:
jean-pierre charras 2019-09-04 16:28:35 +02:00
parent c0b4e10f87
commit 5cf21789e9
1 changed files with 2 additions and 1 deletions

View File

@ -189,8 +189,9 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId );
// Create GAL canvas
m_canvasType = LoadCanvasTypeSetting();
auto drawPanel = new PCB_DRAW_PANEL_GAL( this, -1, wxPoint( 0, 0 ), m_FrameSize,
GetGalDisplayOptions(), LoadCanvasTypeSetting() );
GetGalDisplayOptions(), m_canvasType );
SetCanvas( drawPanel );
// Create the manager and dispatcher & route draw panel events to the dispatcher