summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qrawfont.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-05-10 11:06:57 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-05-10 11:08:38 (GMT)
commit4b95d9939db75d7bd55db4bbbf2d67af459f7eb5 (patch)
tree2f207c2edd4d18b4e63f20ea025c7b68e8e710e9 /src/gui/text/qrawfont.cpp
parent84ef364302728b68d2d29ea9c4ccbec32c7bb115 (diff)
downloadQt-4b95d9939db75d7bd55db4bbbf2d67af459f7eb5.zip
Qt-4b95d9939db75d7bd55db4bbbf2d67af459f7eb5.tar.gz
Qt-4b95d9939db75d7bd55db4bbbf2d67af459f7eb5.tar.bz2
Compile on Mac
Missing API update in Q_WS_MAC block Reviewed-by: Jiang Jiang
Diffstat (limited to 'src/gui/text/qrawfont.cpp')
-rw-r--r--src/gui/text/qrawfont.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qrawfont.cpp b/src/gui/text/qrawfont.cpp
index 4f2a01e..29394e9 100644
--- a/src/gui/text/qrawfont.cpp
+++ b/src/gui/text/qrawfont.cpp
@@ -593,11 +593,11 @@ QRawFont QRawFont::fromFont(const QFont &font, QFontDatabase::WritingSystem writ
// if none of them match, just pick the first one
for (int i = 0; i < list.size(); i++) {
QGlyphRun glyphs = list.at(i);
- QRawFont rawfont = glyphs.font();
+ QRawFont rawfont = glyphs.rawFont();
if (rawfont.familyName() == font.family())
return rawfont;
}
- return list.at(0).font();
+ return list.at(0).rawFont();
}
return QRawFont();
#else