mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
xm: no \n too much in comment if there are no samples
This commit is contained in:
parent
5ad69f6f2a
commit
a31b0bcf8c
@ -185,5 +185,11 @@ void XM::File::read(bool)
|
||||
seek(pos + instrumentSize + sampleHeaderSize * sampleCount + sumSampleLength);
|
||||
}
|
||||
|
||||
d->tag.setComment(intrumentNames.toString("\n") + "\n" + sampleNames.toString("\n"));
|
||||
String comment(intrumentNames.toString("\n"));
|
||||
if(sampleNames.size() > 0)
|
||||
{
|
||||
comment += "\n";
|
||||
comment += sampleNames.toString("\n");
|
||||
}
|
||||
d->tag.setComment(comment);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user