Fix footprint marked as modified when layer visibility changed

Fixes: lp:1830330
* https://bugs.launchpad.net/kicad/+bug/1830330
This commit is contained in:
Michael Kavanagh 2019-05-24 18:48:20 +01:00 committed by Wayne Stambaugh
parent 7058b79bf1
commit 741140e4a4
1 changed files with 3 additions and 1 deletions

View File

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