Fix state id in Scxml export

This commit is contained in:
Arnaud Roques 2023-01-31 20:45:20 +01:00
parent 6979fb6d55
commit aa53729752
1 changed files with 3 additions and 3 deletions

View File

@ -55,6 +55,7 @@ import org.w3c.dom.Element;
import net.sourceforge.plantuml.Guillemet;
import net.sourceforge.plantuml.baraye.EntityImp;
import net.sourceforge.plantuml.baraye.Quark;
import net.sourceforge.plantuml.cucadiagram.Display;
import net.sourceforge.plantuml.cucadiagram.LeafType;
import net.sourceforge.plantuml.cucadiagram.Link;
@ -162,9 +163,8 @@ public class ScxmlStateDiagramStandard {
}
private String getId(EntityImp entity) {
String result = entity.getDisplay().get(0).toString();
result = result.replaceAll("\\*", "");
return result;
final Quark quark = entity.getQuark();
return quark.getName().replaceAll("\\*", "");
}
public void transformerXml(OutputStream os) throws TransformerException, ParserConfigurationException {