diff --git a/src/audiomixerboard.cpp b/src/audiomixerboard.cpp index e6ebaf45ff..be908337fc 100644 --- a/src/audiomixerboard.cpp +++ b/src/audiomixerboard.cpp @@ -704,7 +704,7 @@ void CChannelFader::SetChannelInfos ( const CChannelInfo& cChanInfo ) while ( tbfName.toNextBoundary() != -1 ) { ++iCount; - if ( iCount == iInsPos ) + if ( iCount == iInsPos && tbfName.position() + iLineNumber < strModText.length() ) { strModText.insert ( tbfName.position() + iLineNumber, QString ( "\n" ) ); iLineNumber++;