diff -r 56cd8111b7f7 -r 41300fa6a67c src/gui/text/qcssparser.cpp --- a/src/gui/text/qcssparser.cpp Tue Jan 26 12:42:25 2010 +0200 +++ b/src/gui/text/qcssparser.cpp Tue Feb 02 00:43:10 2010 +0200 @@ -1129,19 +1129,22 @@ static bool setFontFamilyFromValues(const QVector &values, QFont *font, int start = 0) { QString family; + bool shouldAddSpace = false; for (int i = start; i < values.count(); ++i) { const Value &v = values.at(i); if (v.type == Value::TermOperatorComma) { family += QLatin1Char(','); + shouldAddSpace = false; continue; } const QString str = v.variant.toString(); if (str.isEmpty()) break; + if (shouldAddSpace) + family += QLatin1Char(' '); family += str; - family += QLatin1Char(' '); + shouldAddSpace = true; } - family = family.simplified(); if (family.isEmpty()) return false; font->setFamily(family);