1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-20 23:51:18 +01:00

Split "Do" functions out of the "Set" functions for some Track settings

This commit is contained in:
Paul Licameli
2018-01-11 20:57:37 -05:00
parent 242e9a5668
commit 3f05063681
6 changed files with 60 additions and 14 deletions

View File

@@ -210,11 +210,11 @@ double NoteTrack::GetEndTime() const
return GetStartTime() + GetSeq().get_real_dur();
}
void NoteTrack::SetHeight(int h)
void NoteTrack::DoSetHeight(int h)
{
auto oldHeight = GetHeight();
auto oldMargin = GetNoteMargin(oldHeight);
Track::SetHeight(h);
PlayableTrack::DoSetHeight(h);
auto margin = GetNoteMargin(h);
Zoom(
wxRect{ 0, 0, 1, h }, // only height matters