summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-17 10:51:37 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-17 10:52:07 (GMT)
commitdc2771eb57702a0daf5164b0f9ad569c9fe0e5ba (patch)
tree7de557caf7a4d7bfb52aaf68572f81c0cdba01da /src/gui/text
parent213e2c937b667dba7e4996b0857ae5791c6d5fc8 (diff)
downloadQt-dc2771eb57702a0daf5164b0f9ad569c9fe0e5ba.zip
Qt-dc2771eb57702a0daf5164b0f9ad569c9fe0e5ba.tar.gz
Qt-dc2771eb57702a0daf5164b0f9ad569c9fe0e5ba.tar.bz2
Better handling of qreal with QVariant
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qcssparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qcssparser.cpp b/src/gui/text/qcssparser.cpp
index 181ec7e..f11104f 100644
--- a/src/gui/text/qcssparser.cpp
+++ b/src/gui/text/qcssparser.cpp
@@ -793,7 +793,7 @@ static BrushData parseBrushValue(const Value &v, const QPalette &pal)
if (attr.compare(QLatin1String("spread"), Qt::CaseInsensitive) == 0) {
spread = spreads.indexOf(value.variant.toString());
} else {
- vars[attr] = value.variant.toString().toDouble();
+ vars[attr] = value.variant.toReal();
}
}
parser.skipSpace();