fixed surroundarea-compat-code

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@881 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-04-03 23:09:35 +00:00
parent 2418ea32ee
commit bd1f05e52f

View File

@@ -696,7 +696,9 @@ void instrumentTrack::loadTrackSpecificSettings( const QDomElement & _this )
m_volumeModel.loadSettings( _this, "vol" );
// compat-hacks - move to mmp::upgrade
if( _this.hasAttribute( "surpos" ) )
if( _this.hasAttribute( "surpos" ) || _this.hasAttribute( "surpos-x" ) ||
!_this.firstChildElement( "automation-pattern" ).
firstChildElement( "surpos-x" ).isNull() )
{
surroundAreaModel m( this, this );
m.loadSettings( _this, "surpos" );