Merge pull request 'fix end line on non-consecutive ranges ending at the highest bit not being drawn' (#18) from ALVAROPING1/rivet-typst:dev into dev
Reviewed-on: #18 Reviewed-by: Louis Heredero <louis@herdac.ch>
This commit was merged in pull request #18.
This commit is contained in:
@@ -474,9 +474,9 @@
|
||||
shapes += draw-text(range_.name, txt-col, name-x, name-y, fill: bg-col)
|
||||
|
||||
// paint end line only if needed
|
||||
let is-not-limit = if config.ltr-bits { start-i != 0 } else { end-i != struct.bits - 1 }
|
||||
if (
|
||||
start-i != 0
|
||||
and end-i != struct.bits - 1
|
||||
is-not-limit
|
||||
and ranges
|
||||
.at(
|
||||
i
|
||||
|
||||
Reference in New Issue
Block a user