diff options
author | aavit <qt-info@nokia.com> | 2011-09-07 06:34:23 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2011-09-07 06:34:23 (GMT) |
commit | 82286c2b96d9408b825c9c1d94ad45af371f09ea (patch) | |
tree | 82aa34886735dbde2dc983d4d42b25ff98cca8f7 /src/gui/text/qrawfont.cpp | |
parent | 4cc331dc1713758d41f6ddf4b1dd2ed5acb8347f (diff) | |
download | Qt-82286c2b96d9408b825c9c1d94ad45af371f09ea.zip Qt-82286c2b96d9408b825c9c1d94ad45af371f09ea.tar.gz Qt-82286c2b96d9408b825c9c1d94ad45af371f09ea.tar.bz2 |
Make it compile on mac
Diffstat (limited to 'src/gui/text/qrawfont.cpp')
-rw-r--r-- | src/gui/text/qrawfont.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/text/qrawfont.cpp b/src/gui/text/qrawfont.cpp index c477a6a..61bc63e 100644 --- a/src/gui/text/qrawfont.cpp +++ b/src/gui/text/qrawfont.cpp @@ -637,9 +637,9 @@ QRawFont QRawFont::fromFont(const QFont &font, QFontDatabase::WritingSystem writ // Pick the one matches the family name we originally requested, // if none of them match, just pick the first one for (int i = 0; i < list.size(); i++) { - rawfont = list.at(i).rawFont(); - if (rawfont.familyName() == font.family()) - return rawfont; + rawFont = list.at(i).rawFont(); + if (rawFont.familyName() == font.family()) + return rawFont; } return list.at(0).rawFont(); } |