mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-06 03:32:09 +01:00
Move Y position, height, and minimized state into TrackView...
... and eliminate some unnecessary calls to SubstitutePendingChangedTrack, because the track and the substitute store Y and height in their shared TrackView object. Also make GetMinimizedHeight() virtual to avoid inclusion of TrackPanel.h in TrackView.cpp.
This commit is contained in:
@@ -770,8 +770,8 @@ wxRect ScreenshotCommand::GetTrackRect( AudacityProject * pProj, TrackPanel * pa
|
||||
// Omit the outermost ring of gray pixels
|
||||
|
||||
// (Note that TrackPanel paints its focus over the "top margin" of the
|
||||
// rectangle allotted to the track, according to Track::GetY() and
|
||||
// Track::GetHeight(), but also over the margin of the next track.)
|
||||
// rectangle allotted to the track, according to TrackView::GetY() and
|
||||
// TrackView::GetHeight(), but also over the margin of the next track.)
|
||||
|
||||
rect.height += kBottomMargin;
|
||||
int dy = kTopMargin - 1;
|
||||
|
||||
Reference in New Issue
Block a user