Browse Source

Don't set modified flag for render settings in modedit.

Fixes: lp:1744521
* https://bugs.launchpad.net/kicad/+bug/1744521
pull/5/merge
Jeff Young 8 years ago
committed by Wayne Stambaugh
parent
commit
24b5152240
  1. 11
      pcbnew/pcb_layer_widget.cpp

11
pcbnew/pcb_layer_widget.cpp

@ -669,10 +669,13 @@ void PCB_LAYER_WIDGET::OnRenderEnable( int aId, bool isEnabled )
BOARD* brd = myframe->GetBoard();
wxASSERT( aId > GAL_LAYER_ID_START && aId < GAL_LAYER_ID_END );
// The layer visibility status is saved in the board file so set the board modified
// state so the user has the option to save the changes.
if( brd->IsElementVisible( static_cast<GAL_LAYER_ID>( aId ) ) != isEnabled )
myframe->OnModify();
if( myframe->IsType( FRAME_PCB ) )
{
// The layer visibility status is saved in the board file so set the board
// modified state so the user has the option to save the changes.
if( brd->IsElementVisible( static_cast<GAL_LAYER_ID>( aId ) ) != isEnabled )
myframe->OnModify();
}
brd->SetElementVisibility( static_cast<GAL_LAYER_ID>( aId ), isEnabled );

Loading…
Cancel
Save