From 4741d5607c9e373d35845f73744b2410f08ab05c Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 4 Apr 2014 16:48:45 +0200 Subject: [PATCH] Elements visibility are updated in the GAL. --- pcbnew/pcbframe.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/pcbframe.cpp b/pcbnew/pcbframe.cpp index 697d4f9019..f602df3d53 100644 --- a/pcbnew/pcbframe.cpp +++ b/pcbnew/pcbframe.cpp @@ -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 ); }