remove always true condition

This commit is contained in:
Klaus Rettinghaus 2023-11-28 11:49:35 +01:00 committed by Igor Korsukov
parent ea75535817
commit d71a252995
1 changed files with 1 additions and 5 deletions

View File

@ -2818,11 +2818,7 @@ void MusicXMLParserDirection::direction(const QString& partId,
} else if (_e.name() == "staff") {
QString strStaff = _e.readElementText();
staff_idx_t staff = _pass1.getMusicXmlPart(partId).staffNumberToIndex(strStaff.toInt());
if (staff >= 0) {
track += staff * VOICES;
} else {
_logger->logError(QString("invalid staff %1").arg(strStaff), &_e);
}
track += staff * VOICES;
} else {
skipLogCurrElem();
}