Commit 9b43909a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.colorWidget: fix crash

parent 4b863d55
......@@ -70,6 +70,8 @@ static inline QString properName(const QColor &color)
static inline QColor properColor(const QString &str)
{
if (str.isNull())
return QColor();
int lalpha = 255;
QString lcolorStr = str;
if (lcolorStr.at(0) == '#' && lcolorStr.length() == 9) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment