mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Change the track view copy function...
... It is const, renamed CopyTo, and invokes the create-on-demand factory in the destination track; this means Track.cpp doesn't need to do that, and so does not need TrackView.h
This commit is contained in:
@@ -41,8 +41,6 @@ and TimeTrack.
|
||||
|
||||
#include "InconsistencyException.h"
|
||||
|
||||
#include "tracks/ui/TrackView.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
//Disable truncation warnings
|
||||
#pragma warning( disable : 4786 )
|
||||
@@ -115,7 +113,7 @@ Track::Holder Track::Duplicate() const
|
||||
|
||||
if (mpView)
|
||||
// Copy view state that might be important to undo/redo
|
||||
TrackView::Get( *result ).Copy( *mpView );
|
||||
mpView->CopyTo( *result );
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user