added quirk for fixing projects with broken positions of TCOs inside BB-tracks
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1314 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -1,5 +1,17 @@
|
||||
2008-07-16 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/gui/main_window.cpp:
|
||||
added minimal width and height when restoring subwindow-states
|
||||
|
||||
* include/bb_track_container.h:
|
||||
* src/core/bb_track_container.cpp:
|
||||
* src/core/song.cpp:
|
||||
added quirk for fixing projects with broken positions of TCOs inside
|
||||
BB-tracks
|
||||
|
||||
* src/core/automation_pattern.cpp:
|
||||
update views after resolving IDs for drawing bars with proper range
|
||||
|
||||
* src/tracks/automation_track.cpp:
|
||||
fixed behaviour of automation-tracks in BB-editor (closes #2014486)
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ public:
|
||||
void swapBB( int _bb1, int _bb2 );
|
||||
|
||||
void updateBBTrack( trackContentObject * _tco );
|
||||
void fixIncorrectPositions( void );
|
||||
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -163,6 +163,21 @@ void bbTrackContainer::updateBBTrack( trackContentObject * _tco )
|
||||
|
||||
|
||||
|
||||
void bbTrackContainer::fixIncorrectPositions( void )
|
||||
{
|
||||
trackList tl = tracks();
|
||||
for( trackList::iterator it = tl.begin(); it != tl.end(); ++it )
|
||||
{
|
||||
for( int i = 0; i < numOfBBs(); ++i )
|
||||
{
|
||||
( *it )->getTCO( i )->movePosition( midiTime( i, 0 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void bbTrackContainer::play( void )
|
||||
{
|
||||
if( engine::getSong()->isPlaying() )
|
||||
|
||||
@@ -925,6 +925,10 @@ void song::loadProject( const QString & _file_name )
|
||||
node = node.nextSibling();
|
||||
}
|
||||
|
||||
// quirk for fixing projects with broken positions of TCOs inside
|
||||
// BB-tracks
|
||||
engine::getBBTrackContainer()->fixIncorrectPositions();
|
||||
|
||||
// Connect controller links to their controllers
|
||||
// now that everything is loaded
|
||||
controllerConnection::finalizeConnections();
|
||||
|
||||
Reference in New Issue
Block a user