Update m_LastLegendPosition after setting dirty bit.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17411
This commit is contained in:
Jeff Young 2024-03-13 10:37:16 +00:00
parent b56ee20e22
commit 7341d4bf37
1 changed files with 3 additions and 0 deletions

View File

@ -1270,7 +1270,10 @@ void SIMULATOR_FRAME_UI::OnUpdateUI( wxUpdateUIEvent& event )
if( SIM_PLOT_TAB* plotTab = dynamic_cast<SIM_PLOT_TAB*>( GetCurrentSimTab() ) )
{
if( plotTab->GetLegendPosition() != plotTab->m_LastLegendPosition )
{
plotTab->m_LastLegendPosition = plotTab->GetLegendPosition();
OnModify();
}
}
}