1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Update vertical ruler width correctly when applying view settings changes

This commit is contained in:
Paul Licameli 2015-08-20 12:03:10 -04:00
parent 72c72b8d83
commit 8c58e0ea71
2 changed files with 6 additions and 2 deletions

View File

@ -472,7 +472,9 @@ void SpectrumPrefs::OnApply(wxCommandEvent &)
{ {
if (Validate()) { if (Validate()) {
Apply(); Apply();
::GetActiveProject()->GetTrackPanel()->Refresh(false); TrackPanel *const tp = ::GetActiveProject()->GetTrackPanel();
tp->UpdateVRulers();
tp->Refresh(false);
} }
} }

View File

@ -223,7 +223,9 @@ void WaveformPrefs::OnApply(wxCommandEvent &)
{ {
if (Validate()) { if (Validate()) {
Apply(); Apply();
::GetActiveProject()->GetTrackPanel()->Refresh(false); TrackPanel *const tp = ::GetActiveProject()->GetTrackPanel();
tp->UpdateVRulers();
tp->Refresh(false);
} }
} }