One more fix for #1490786.
This commit is contained in:
parent
276a923027
commit
9c9b0d1c6d
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue