about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/layout/box.nim1
-rw-r--r--src/layout/engine.nim2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/box.nim b/src/layout/box.nim
index cc34c41c..8a5c33da 100644
--- a/src/layout/box.nim
+++ b/src/layout/box.nim
@@ -34,7 +34,6 @@ type
 
   InlineBoxBuilder* = ref object of BoxBuilder
     text*: seq[string]
-    ictx*: InlineContext
     newline*: bool
 
   BlockBoxBuilder* = ref object of BoxBuilder
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 41b195bf..6cb12510 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -697,7 +697,7 @@ proc buildInline(ictx: InlineContext, box: InlineBoxBuilder) =
   let padding_right = box.computed{"padding-right"}.px(ictx.viewport, ictx.contentWidth)
   if padding_right > 0:
     # I don't like this, but it works...
-    box.ictx.currentLine.addSpacing(padding_right, max(ictx.currentLine.height, 1), paddingformat)
+    ictx.currentLine.addSpacing(padding_right, max(ictx.currentLine.height, 1), paddingformat)
 
   let margin_right = box.computed{"margin-right"}.px(ictx.viewport, ictx.contentWidth)
   ictx.currentLine.width += margin_right
w DeVault <sir@cmpwn.com> 2019-06-02 10:16:29 -0400 widget: Add ProvidesMessage interface' href='/akspecs/aerc/commit/commands/account/view.go?h=0.1.3&id=753adb90692e4821f8caea1d5d86cd69e312efa7'>753adb9 ^
2c486cb ^
27b2517 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30