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:
parent
36fc9191b9
commit
2609882346
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue