Fix getCssLength returning false for '0'

develop
Nimetu 3 years ago
parent 2133f6d2b7
commit 234465387b

@ -215,6 +215,13 @@ namespace NLGUI
return false; return false;
} }
if (len == 1 && str[0] == '0')
{
value = 0;
unit.clear();
return true;
}
while(pos < len) while(pos < len)
{ {
bool isNumeric = (str[pos] >= '0' && str[pos] <= '9') bool isNumeric = (str[pos] >= '0' && str[pos] <= '9')

Loading…
Cancel
Save