Fix regression introduced by 8e3fdf1354

Task-number: QTBUG-42963
Change-Id: Iaf2677a967ef424a3b781cdb2d3194d0e0e55333
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
This commit is contained in:
Konstantin Ritt 2014-12-03 17:49:46 +04:00
parent 27894537ab
commit 8f6b328410

View File

@ -1635,7 +1635,12 @@ QFontEngine *QFontEngineMulti::loadEngine(int at)
request.styleStrategy |= QFont::NoFontMerging;
request.family = fallbackFamilyAt(at - 1);
return QFontDatabase::findFont(m_script, /*fontprivate = */0, request, /*multi = */false);
if (QFontEngine *engine = QFontDatabase::findFont(m_script, /*fontprivate = */0, request, /*multi = */false)) {
engine->fontDef = request;
return engine;
}
return 0;
}
glyph_t QFontEngineMulti::glyphIndex(uint ucs4) const