Elements visibility are updated in the GAL.

This commit is contained in:
Maciej Suminski 2014-04-04 16:48:45 +02:00
parent b3318dad5d
commit 4741d5607c
1 changed files with 1 additions and 0 deletions

View File

@ -980,6 +980,7 @@ bool PCB_EDIT_FRAME::IsElementVisible( int aElement ) const
void PCB_EDIT_FRAME::SetElementVisibility( int aElement, bool aNewState )
{
GetGalCanvas()->GetView()->SetLayerVisible( ITEM_GAL_LAYER( aElement ), aNewState );
GetBoard()->SetElementVisibility( aElement, aNewState );
m_Layers->SetRenderState( aElement, aNewState );
}