summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-05-19 08:49:03 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-05-19 08:49:03 (GMT)
commitc6f8b600cb1635bef425b3d2232213fb41ea96bd (patch)
tree77f384a62f76de02d9765d615966327b91e4bb4a /src/svg
parent6cc1e0106845a0dfe9433c4413b3c064c73ccfe2 (diff)
parent9f9ede616079998f8ba7bf6fd446f39ce74b0400 (diff)
downloadQt-c6f8b600cb1635bef425b3d2232213fb41ea96bd.zip
Qt-c6f8b600cb1635bef425b3d2232213fb41ea96bd.tar.gz
Qt-c6f8b600cb1635bef425b3d2232213fb41ea96bd.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/qsvghandler.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index cb07c53..c5026b8 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -1673,10 +1673,19 @@ static void parseCSStoXMLAttrs(const QVector<QCss::Declaration> &declarations,
const QCss::Declaration &decl = declarations.at(i);
if (decl.d->property.isEmpty())
continue;
- if (decl.d->values.count() != 1)
- continue;
QCss::Value val = decl.d->values.first();
- QString valueStr = val.toString();
+ QString valueStr;
+ if (decl.d->values.count() != 1) {
+ for (int i=0; i<decl.d->values.count(); ++i) {
+ const QString &value = decl.d->values[i].toString();
+ if (value.isEmpty())
+ valueStr += QLatin1Char(',');
+ else
+ valueStr += value;
+ }
+ } else {
+ valueStr = val.toString();
+ }
if (val.type == QCss::Value::Uri) {
valueStr.prepend(QLatin1String("url("));
valueStr.append(QLatin1Char(')'));