src/gui/text/qcssparser.cpp
branchRCL_3
changeset 13 c0432d11811c
parent 4 3b1da2848fc7
--- a/src/gui/text/qcssparser.cpp	Wed Apr 21 12:15:23 2010 +0300
+++ b/src/gui/text/qcssparser.cpp	Wed Apr 21 20:15:53 2010 +0300
@@ -895,7 +895,7 @@
         BorderData data = qvariant_cast<BorderData>(decl.d->parsed);
         *width = lengthValueFromData(data.width, f);
         *style = data.style;
-        *color = brushFromData(data.color, pal);
+        *color = data.color.type != BrushData::Invalid ? brushFromData(data.color, pal) : QBrush(QColor());
         return;
     }