mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 08:27:13 +01:00
Move height calculation utilities to class TrackView
This commit is contained in:
@@ -206,10 +206,9 @@ void DoZoomFitV(AudacityProject &project)
|
||||
height -= 28;
|
||||
|
||||
// The height of minimized and non-audio tracks cannot be apportioned
|
||||
const auto GetHeight = []( const Track *track )
|
||||
{ return TrackView::Get( *track ).GetHeight(); };
|
||||
height -=
|
||||
tracks.Any().sum( GetHeight ) - range.sum( GetHeight );
|
||||
tracks.Any().sum( TrackView::GetTrackHeight )
|
||||
- range.sum( TrackView::GetTrackHeight );
|
||||
|
||||
// Give each resized track the average of the remaining height
|
||||
height = height / count;
|
||||
|
||||
Reference in New Issue
Block a user