Fix footprint marked as modified when layer visibility changed

Fixes: lp:1830330
* https://bugs.launchpad.net/kicad/+bug/1830330

(cherry picked from commit 741140e4a4)
This commit is contained in:
Michael Kavanagh 2019-05-24 18:48:20 +01:00 committed by Wayne Stambaugh
parent c162337cab
commit 44fc69398c
1 changed files with 3 additions and 1 deletions

View File

@ -656,6 +656,8 @@ void PCB_LAYER_WIDGET::OnLayerVisible( int aLayer, bool isVisible, bool isFinal
brd->SetVisibleLayers( visibleLayers );
// Layer visibility is not stored in .kicad_mod files
if( !m_fp_editor_mode )
myframe->OnModify();
EDA_DRAW_PANEL_GAL* galCanvas = myframe->GetGalCanvas();