From bd1f05e52fe0eb54a383b74e850d628c08e2acaa Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 3 Apr 2008 23:09:35 +0000 Subject: [PATCH] fixed surroundarea-compat-code git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@881 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/tracks/instrument_track.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tracks/instrument_track.cpp b/src/tracks/instrument_track.cpp index 2f5a27f164..fc5a3b0012 100644 --- a/src/tracks/instrument_track.cpp +++ b/src/tracks/instrument_track.cpp @@ -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" );