src/gui/text/qcssparser.cpp
changeset 22 79de32ba3296
parent 18 2f34d5167611
--- a/src/gui/text/qcssparser.cpp	Mon May 03 13:17:34 2010 +0300
+++ b/src/gui/text/qcssparser.cpp	Fri May 14 16:40:13 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;
     }