Commit 8f85b26d authored by Andrea Iacovitti's avatar Andrea Iacovitti

Convert to int from DOMString that check for null implementation and return 0 in case.

BUG: 338059
FIXED-IN: 4.14.4
parent 0a744abb
......@@ -2447,11 +2447,11 @@ void HTMLSelectElementImpl::parseAttribute(AttributeImpl *attr)
switch(attr->id())
{
case ATTR_SIZE:
m_size = qMax( attr->val()->toInt(), 1 );
m_size = qMax(attr->value().toInt(), 1);
setChanged();
break;
case ATTR_WIDTH:
m_minwidth = qMax( attr->val()->toInt(), 0 );
m_minwidth = qMax(attr->value().toInt(), 0);
break;
case ATTR_MULTIPLE:
m_multiple = (attr->val() != 0);
......
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