One more fix for #1490786.

This commit is contained in:
Maciej Suminski 2015-09-02 10:48:10 +02:00
parent 276a923027
commit 9c9b0d1c6d
1 changed files with 9 additions and 4 deletions

View File

@ -661,12 +661,17 @@ void PCB_EDIT_FRAME::Show3D_Frame( wxCommandEvent& event )
void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable )
{
PCB_BASE_EDIT_FRAME::UseGalCanvas( aEnable );
if( aEnable && GetBoard() )
GetBoard()->GetRatsnest()->ProcessBoard();
if( aEnable )
{
if( ( BOARD* board = GetBoard() ) )
board->GetRatsnest()->ProcessBoard();
}
else
{
Compile_Ratsnest( NULL, true );
}
PCB_BASE_EDIT_FRAME::UseGalCanvas( aEnable );
enableGALSpecificMenus();
}