don't write an extra comma at the end of SMData
This commit is contained in:
@@ -200,6 +200,9 @@ void NoteDataUtil::GetSMNoteDataString( const NoteData &in_, CString ¬es_out,
|
|||||||
|
|
||||||
for( int m=0; m<=iLastMeasure; m++ ) // foreach measure
|
for( int m=0; m<=iLastMeasure; m++ ) // foreach measure
|
||||||
{
|
{
|
||||||
|
if( m )
|
||||||
|
sRet.append( 1, ',' );
|
||||||
|
|
||||||
NoteType nt = GetSmallestNoteTypeForMeasure( in, m );
|
NoteType nt = GetSmallestNoteTypeForMeasure( in, m );
|
||||||
int iRowSpacing;
|
int iRowSpacing;
|
||||||
if( nt == NOTE_TYPE_INVALID )
|
if( nt == NOTE_TYPE_INVALID )
|
||||||
@@ -242,8 +245,6 @@ void NoteDataUtil::GetSMNoteDataString( const NoteData &in_, CString ¬es_out,
|
|||||||
|
|
||||||
sRet.append(1, '\n');
|
sRet.append(1, '\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
sRet.append(1, ',');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user