Commit db66629d authored by Jake Petroules's avatar Jake Petroules
Browse files

Fix crash when using QRawFont with FreeType on OS X.


Change-Id: I6ca87188a46e3fe31498ed14fdce2161ecb0c966
Reviewed-by: default avatarGabriel de Dietrich <gabriel.dedietrich@qt.io>
Showing with 1 addition and 1 deletion
...@@ -367,7 +367,7 @@ static QByteArray filenameForCFUrl(CFURLRef url) ...@@ -367,7 +367,7 @@ static QByteArray filenameForCFUrl(CFURLRef url)
if (!CFURLGetFileSystemRepresentation(url, true, buffer, sizeof(buffer))) { if (!CFURLGetFileSystemRepresentation(url, true, buffer, sizeof(buffer))) {
qWarning("QCoreTextFontDatabase::filenameForCFUrl: could not resolve file for URL %s", qWarning("QCoreTextFontDatabase::filenameForCFUrl: could not resolve file for URL %s",
qPrintable(QString::fromCFString(CFURLGetString(url)))); url ? qPrintable(QString::fromCFString(CFURLGetString(url))) : "(null)");
} else { } else {
QCFType<CFStringRef> scheme = CFURLCopyScheme(url); QCFType<CFStringRef> scheme = CFURLCopyScheme(url);
if (QString::fromCFString(scheme) == QLatin1String("qrc")) if (QString::fromCFString(scheme) == QLatin1String("qrc"))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment