about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/layout/engine.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index a9dca1e6..967435b1 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -608,7 +608,7 @@ proc addAtom(ictx: var InlineContext, state: var InlineState,
       ictx.addSpacing(shift, ictx.cellheight)
     ictx.minwidth = max(ictx.minwidth, atom.minwidth)
     ictx.applyLineHeight(ictx.currentLine, state.computed)
-    if atom.t == INLINE_WORD:
+    if atom.t != INLINE_WORD:
       ictx.currentLine.charwidth = 0
     ictx.currentLine.atoms.add(atom)
     state.fragment.atoms.add(atom)