Qt 5.15.2: fixed QTBUG-71737 - startup lag on Windows

This commit is contained in:
kleuter 2021-10-17 11:21:28 +02:00
parent 1674e67f32
commit 3b34216a2a

View File

@ -1815,7 +1815,7 @@ void QFontEngineMulti::setFallbackFamiliesList(const QStringList &fallbackFamili
void QFontEngineMulti::ensureEngineAt(int at)
{
if (!m_fallbackFamiliesQueried)
if (!m_fallbackFamiliesQueried && at > 0)
ensureFallbackFamiliesQueried();
Q_ASSERT(at < m_engines.size());
if (!m_engines.at(at)) {