diff options
author | bptato <nincsnevem662@gmail.com> | 2025-02-01 15:54:18 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-02-01 15:54:35 +0100 |
commit | 81c89e6de45c704d319e01ff1e641e3066705c9a (patch) | |
tree | a7c4a89c968998cd68e3ffb899b5dbd2240f28ac /src/css/layout.nim | |
parent | f7783ca551c7e64094b557da67a93537863c4d81 (diff) | |
download | chawan-81c89e6de45c704d319e01ff1e641e3066705c9a.tar.gz |
dom, layout: fix empty canvas cache ids
ok now I understand why I made shareCachedItem crash...
Diffstat (limited to 'src/css/layout.nim')
-rw-r--r-- | src/css/layout.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/layout.nim b/src/css/layout.nim index 0e0edb88..76444256 100644 --- a/src/css/layout.nim +++ b/src/css/layout.nim @@ -3169,7 +3169,7 @@ proc buildReplacement(ctx: var BlockBuilderContext; child, parent: StyledNode; let text = newCharacterData(child.content.s) ctx.pushInlineText(computed, parent, text) of ContentImage: - if child.content.bmp != nil: + if child.content.bmp != nil and child.content.bmp.cacheId != -1: ctx.pushInline(InlineBox( t: ibtBitmap, computed: computed, |