Skip to content

Commit 556f80a

Browse files
committed
Ensure ring height is at least 1
Non-Eio rings that don't have any events didn't get the correct height.
1 parent 668a86a commit 556f80a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/layout.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ let layout_ring ~duration (ring : Ring.t) =
185185
);
186186
);
187187
make_y_absolute i ring.y;
188-
max_y := max !max_y (i.y + i.height - 1);
188+
max_y := max !max_y (i.height - 1);
189189
in
190190
List.iter visit_domain ring.roots;
191-
ring.height <- (!max_y + 1) - ring.y
191+
ring.height <- !max_y + 1
192192

193193
let of_trace (trace : Trace.t) =
194194
let start_time = trace.start_time in

0 commit comments

Comments
 (0)