From a87f84406465e29784342173ee1eb2733d135b81 Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Mon, 11 Dec 2023 19:03:13 +0100 Subject: [PATCH] fix: missing label in activity diagrams https://github.com/plantuml/plantuml/issues/1622#issuecomment-1847091587 --- .../plantuml/activitydiagram3/InstructionList.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/net/sourceforge/plantuml/activitydiagram3/InstructionList.java b/src/net/sourceforge/plantuml/activitydiagram3/InstructionList.java index 7bec98e0d..d8362f656 100644 --- a/src/net/sourceforge/plantuml/activitydiagram3/InstructionList.java +++ b/src/net/sourceforge/plantuml/activitydiagram3/InstructionList.java @@ -129,8 +129,13 @@ public class InstructionList extends WithNote implements Instruction, Instructio @Override public Ftile createFtile(FtileFactory factory) { - if (all.size() == 0) - return new FtileEmpty(factory.skinParam(), defaultSwimlane); + if (all.size() == 0) { + Ftile result = new FtileEmpty(factory.skinParam(), defaultSwimlane); + // Not a typo, in that case, we decide to decorate the entry link. + if (outlinkRendering != null) + result = factory.decorateIn(result, outlinkRendering); + return result; + } final List breaks = new ArrayList<>(); Ftile result = eventuallyAddNote(factory, null, getSwimlaneIn(), VerticalAlignment.CENTER);