From 3b34216a2a616fa4006c348eafdb6a5521606a9f Mon Sep 17 00:00:00 2001 From: kleuter Date: Sun, 17 Oct 2021 11:21:28 +0200 Subject: [PATCH] Qt 5.15.2: fixed QTBUG-71737 - startup lag on Windows --- 5.15.2/qtbase/src/gui/text/qfontengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5.15.2/qtbase/src/gui/text/qfontengine.cpp b/5.15.2/qtbase/src/gui/text/qfontengine.cpp index f1fd755..d9c0239 100644 --- a/5.15.2/qtbase/src/gui/text/qfontengine.cpp +++ b/5.15.2/qtbase/src/gui/text/qfontengine.cpp @@ -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)) {