forked from HEL/rivet-typst
fix end line on non-consecutive ranges ending at the highest bit not being drawn
This commit is contained in:
@@ -474,9 +474,9 @@
|
|||||||
shapes += draw-text(range_.name, txt-col, name-x, name-y, fill: bg-col)
|
shapes += draw-text(range_.name, txt-col, name-x, name-y, fill: bg-col)
|
||||||
|
|
||||||
// paint end line only if needed
|
// paint end line only if needed
|
||||||
|
let is-not-limit = if config.ltr-bits { start-i != 0 } else { end-i != struct.bits - 1 }
|
||||||
if (
|
if (
|
||||||
start-i != 0
|
is-not-limit
|
||||||
and end-i != struct.bits - 1
|
|
||||||
and ranges
|
and ranges
|
||||||
.at(
|
.at(
|
||||||
i
|
i
|
||||||
|
|||||||
Reference in New Issue
Block a user