Commit a96c5379 authored by Maciej Suminski's avatar Maciej Suminski

Fixed non-GAL build.

parent e4bac0d9
......@@ -945,6 +945,7 @@ void EDA_DRAW_FRAME::AdjustScrollBars( const wxPoint& aCenterPositionIU )
void EDA_DRAW_FRAME::UseGalCanvas( bool aEnable )
{
#ifdef KICAD_GAL
if( aEnable && m_galCanvasActive )
{
// When we switch between GAL based canvases, all we need is a refresh
......@@ -986,4 +987,5 @@ void EDA_DRAW_FRAME::UseGalCanvas( bool aEnable )
}
m_galCanvasActive = aEnable;
#endif /* KICAD_GAL */
}
......@@ -417,7 +417,7 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( wxWindow* parent, const wxString& title,
wxAuiPaneInfo().Name( wxT( "DrawFrame" ) ).CentrePane() );
if( m_galCanvas )
m_auimgr.AddPane( m_galCanvas,
m_auimgr.AddPane( (wxWindow*) m_galCanvas,
wxAuiPaneInfo().Name( wxT( "DrawFrameGal" ) ).CentrePane().Hide() );
if( m_messagePanel )
......
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