From df785be454363cdb7c3bcee730b4fa174a6e19d4 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Wed, 21 Jan 2026 14:11:47 +0100 Subject: [PATCH] fixed sequence endpoint when no active lifeline --- src/core/draw/sequence.typ | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/core/draw/sequence.typ b/src/core/draw/sequence.typ index d0d15a6..512c6ca 100644 --- a/src/core/draw/sequence.typ +++ b/src/core/draw/sequence.typ @@ -139,16 +139,14 @@ // Compute left/right position at start/end start-info.insert("rx", start-info.x + start-info.ll-lvl) end-info.insert("rx", end-info.x + end-info.ll-lvl) - let start-lx - let end-lx + let start-lx = start-info.x + let end-lx = end-info.x if seq.outer-lifeline-connect { - start-lx = start-info.x - end-lx = end-info.x if start-info.ll-lvl != 0 {start-lx -= LIFELINE-W / 2} if end-info.ll-lvl != 0 {end-lx -= LIFELINE-W / 2} } else { - start-lx = start-info.rx - LIFELINE-W - end-lx = end-info.rx - LIFELINE-W + if start-info.ll-lvl != 0 {start-lx = start-info.rx - LIFELINE-W} + if end-info.ll-lvl != 0 {end-lx = end-info.rx - LIFELINE-W} } start-info.insert("lx", start-lx) end-info.insert("lx", end-lx)