diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-09 14:21:33 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-09 14:21:33 +0100 |
commit | 14f5605061501fa56d9b4970571858f6451e4710 (patch) | |
tree | 31fb3db344971ed643be7f7e8525a907fb8efb9e /src/css | |
parent | a6dbfadab3d783ae3ca84e78f154153e8a315ce3 (diff) | |
download | chawan-14f5605061501fa56d9b4970571858f6451e4710.tar.gz |
sheet: fix overflow in addAtRule
It is enough to just take the len of children there.
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/sheet.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/sheet.nim b/src/css/sheet.nim index 0929d7f9..bf38c918 100644 --- a/src/css/sheet.nim +++ b/src/css/sheet.nim @@ -198,7 +198,7 @@ proc addAtRule(stylesheet: var CSSStylesheet, atrule: CSSAtRule) = else: media.children.addRule(CSSQualifiedRule(rule)) stylesheet.mqList.add(media) - stylesheet.len += media.children.len + stylesheet.len = media.children.len else: discard #TODO proc parseStylesheet*(s: Stream): CSSStylesheet = |