@ -69,7 +69,11 @@ bool CSSLength::parseValue(const std::string &value, bool allowPercent, bool all
if (knownUnits.count(unit))
{
std::string tmpstr = value.substr(0, pos);
return fromString(tmpstr, m_Value);
if (fromString(tmpstr, m_Value))
setUnit(unit);
return true;
}
return false;