From 1f5a87f7b22d310a556b69186816b94a9eef7b92 Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Wed, 23 Mar 2022 23:36:09 +0700 Subject: [PATCH] Audiomixerboard: Fix extra blank line when musucian name length % iBreakPos == 0 --- src/audiomixerboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++;