fix import of copyright from MIDI and GP

This commit is contained in:
lasconic 2014-04-04 15:46:24 +02:00
parent 61409b1642
commit 9e260cb501
2 changed files with 5 additions and 5 deletions

View file

@ -655,7 +655,7 @@ void GuitarPro2::read(QFile* fp)
composer = readDelphiString();
QString copyright = readDelphiString();
if (!copyright.isEmpty())
score->setMetaTag("Copyright", QString("Copyright %1\nAll Rights Reserved - International Copyright Secured").arg(copyright));
score->setMetaTag("copyright", QString("Copyright %1\nAll Rights Reserved - International Copyright Secured").arg(copyright));
transcriber = readDelphiString();
instructions = readDelphiString();
@ -1210,7 +1210,7 @@ void GuitarPro3::read(QFile* fp)
composer = readDelphiString();
QString copyright = readDelphiString();
if (!copyright.isEmpty())
score->setMetaTag("Copyright", QString("Copyright %1\nAll Rights Reserved - International Copyright Secured").arg(copyright));
score->setMetaTag("copyright", QString("Copyright %1\nAll Rights Reserved - International Copyright Secured").arg(copyright));
transcriber = readDelphiString();
instructions = readDelphiString();
@ -1895,7 +1895,7 @@ void GuitarPro4::readInfo()
composer = readDelphiString();
QString copyright = readDelphiString();
if (!copyright.isEmpty())
score->setMetaTag("Copyright", QString("Copyright %1\nAll Rights Reserved - International Copyright Secured").arg(copyright));
score->setMetaTag("copyright", QString("Copyright %1\nAll Rights Reserved - International Copyright Secured").arg(copyright));
transcriber = readDelphiString();
instructions = readDelphiString();
@ -2228,7 +2228,7 @@ void GuitarPro5::readInfo()
readDelphiString();
QString copyright = readDelphiString();
if (!copyright.isEmpty())
score->setMetaTag("Copyright", QString("Copyright %1\nAll Rights Reserved - International Copyright Secured").arg(copyright));
score->setMetaTag("copyright", QString("Copyright %1\nAll Rights Reserved - International Copyright Secured").arg(copyright));
transcriber = readDelphiString();
instructions = readDelphiString();

View file

@ -248,7 +248,7 @@ void MTrack::processMeta(int tick, const MidiEvent& mm)
}
break;
case META_COPYRIGHT:
cs->setMetaTag("Copyright", QString((const char*)(mm.edata())));
cs->setMetaTag("copyright", QString((const char*)(mm.edata())));
break;
case META_TIME_SIGNATURE:
cs->sigmap()->add(tick, Fraction(data[0], 1 << data[1]));