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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user