Fix crash when using QRawFont with FreeType on OS X.
Change-Id: I6ca87188a46e3fe31498ed14fdce2161ecb0c966 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>bb10
parent
2e304751b3
commit
db66629ddd
|
|
@ -367,7 +367,7 @@ static QByteArray filenameForCFUrl(CFURLRef url)
|
|||
|
||||
if (!CFURLGetFileSystemRepresentation(url, true, buffer, sizeof(buffer))) {
|
||||
qWarning("QCoreTextFontDatabase::filenameForCFUrl: could not resolve file for URL %s",
|
||||
qPrintable(QString::fromCFString(CFURLGetString(url))));
|
||||
url ? qPrintable(QString::fromCFString(CFURLGetString(url))) : "(null)");
|
||||
} else {
|
||||
QCFType<CFStringRef> scheme = CFURLCopyScheme(url);
|
||||
if (QString::fromCFString(scheme) == QLatin1String("qrc"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue