diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-03 16:15:25 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-03 16:15:25 +0100 |
commit | 9528f502e7564ee647b39ebe02be1fb54c3c499d (patch) | |
tree | b2da8e8eaf87f8550fc5f9fc8170c419577ca02c /src/css | |
parent | 81f800cb813d36d5339a3ab17938e0afa2089899 (diff) | |
download | chawan-9528f502e7564ee647b39ebe02be1fb54c3c499d.tar.gz |
Fix index error in parseDimensionValues
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/values.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/values.nim b/src/css/values.nim index 6ede0fd9..848bd7d0 100644 --- a/src/css/values.nim +++ b/src/css/values.nim @@ -353,7 +353,7 @@ func parseDimensionValues*(s: string): Option[CSSLength] = n *= 10 n += float64(decValue(s[i])) inc i - if i >= s.len: return some(CSSLength(num: n, unit: UNIT_PX)) + if i >= s.len: return some(CSSLength(num: n, unit: UNIT_PX)) if s[i] == '.': inc i if i >= s.len: return some(CSSLength(num: n, unit: UNIT_PX)) |