Fixed non-GAL build.

This commit is contained in:
Maciej Suminski 2013-04-18 11:46:23 +02:00
parent e4bac0d91a
commit a96c5379b3
2 changed files with 3 additions and 1 deletions

View File

@ -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 */
}

View File

@ -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 )