Update m_LastLegendPosition after setting dirty bit.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17411

(cherry picked from commit 7341d4bf37)
This commit is contained in:
Jeff Young 2024-03-13 10:37:16 +00:00
parent 36fc9191b9
commit 2609882346
1 changed files with 3 additions and 0 deletions

View File

@ -1251,7 +1251,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();
}
}
}