mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02: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:
@@ -32,6 +32,8 @@
|
||||
|
||||
#include "TrackPanelDrawingContext.h"
|
||||
|
||||
#include "tracks/ui/TrackView.h"
|
||||
|
||||
// Globals, so that we remember settings from session to session
|
||||
wxPrintData &gPrintData()
|
||||
{
|
||||
@@ -98,7 +100,7 @@ bool AudacityPrintout::OnPrintPage(int WXUNUSED(page))
|
||||
r.x = 0;
|
||||
r.y = y;
|
||||
r.width = width;
|
||||
r.height = (int)(n->GetHeight() * scale);
|
||||
r.height = (int)(TrackView::Get( *n ).GetHeight() * scale);
|
||||
|
||||
TrackPanelDrawingContext context{
|
||||
*dc, {}, {}, &artist
|
||||
|
Reference in New Issue
Block a user