[android] Fix percentage handling in SVGLength

This commit is contained in:
Mikael Sand
2018-10-19 01:16:09 +03:00
parent 00f0b66c13
commit 44744bc1f3
@@ -35,7 +35,7 @@ class SVGLength {
value = 0;
} else if (length.codePointAt(percentIndex) == '%') {
unit = SVGLengthUnitType.SVG_LENGTHTYPE_PERCENTAGE;
value = Double.valueOf(length.substring(0, percentIndex)) / 100;
value = Double.valueOf(length.substring(0, percentIndex));
} else {
int twoLetterUnitIndex = stringLength - 2;
if (twoLetterUnitIndex > 0) {