use fallback font rather than crash

This commit is contained in:
Joachim Schmitz 2016-05-17 10:07:26 +02:00
parent cde81ea4ea
commit 1a58d9fcd0

View file

@ -6048,8 +6048,9 @@ ScoreFont* ScoreFont::fontFactory(QString s)
qDebug("ScoreFont <%s> not found in list", qPrintable(s));
for (ScoreFont& sf : _scoreFonts)
qDebug(" %s", qPrintable(sf.name()));
qDebug("Using fallback font <%s> instead", qPrintable(_scoreFonts[FALLBACK_FONT].name()));
return fallbackFont();
}
Q_ASSERT(f);
if (!f->face)
f->load();