summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2011-09-07 08:34:23 +0200
committeraavit <qt-info@nokia.com>2011-09-07 08:34:23 +0200
commit82286c2b96d9408b825c9c1d94ad45af371f09ea (patch)
tree82aa34886735dbde2dc983d4d42b25ff98cca8f7
parent4cc331dc1713758d41f6ddf4b1dd2ed5acb8347f (diff)
Make it compile on mac
-rw-r--r--src/gui/text/qrawfont.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/text/qrawfont.cpp b/src/gui/text/qrawfont.cpp
index c477a6abde..61bc63efee 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();
}