alt does not work -tlatex, with IllegalArgumentException

0 votes
asked Aug 7, 2014 in bug by anonymous

@startuml

a->b: foo

alt true

    a->b: bar1

else false

    a->b: bar2

end

@enduml

 

The above gives the following:

java.lang.IllegalArgumentException

at net.sourceforge.plantuml.tikz.TikzGraphics.setStrokeColor(Unknown Source)

at net.sourceforge.plantuml.ugraphic.tikz.DriverRectangleTikz.draw(Unknown Source)

at net.sourceforge.plantuml.ugraphic.tikz.DriverRectangleTikz.draw(Unknown Source)

at net.sourceforge.plantuml.ugraphic.AbstractUGraphic.draw(Unknown Source)

at net.sourceforge.plantuml.skin.rose.ComponentRoseGroupingElse.drawBackgroundInternalU(Unknown Source)

at net.sourceforge.plantuml.skin.AbstractComponent.drawU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.GroupingGraphicalElementElse.drawInternalU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.GraphicalElement.drawU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawPlaygroundU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma.createImage(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma.createOne(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.SequenceDiagram.exportDiagramInternal(Unknown Source)

at net.sourceforge.plantuml.UmlDiagram.exportDiagram(Unknown Source)

at net.sourceforge.plantuml.PSystemUtils.exportDiagramsSequence(Unknown Source)

at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(Unknown Source)

at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(Unknown Source)

at net.sourceforge.plantuml.Run.manageFileInternal(Unknown Source)

at net.sourceforge.plantuml.Run.processArgs(Unknown Source)

at net.sourceforge.plantuml.Run.manageAllFiles(Unknown Source)

at net.sourceforge.plantuml.Run.main(Unknown Source)

1 Answer

0 votes
answered Aug 7, 2014 by plantuml (131,770 points)
Thanks for the report.
 
Here is a beta version that solves this issue:
 
There is still a drawing bug with the line close to "alt", but at least it does not crash anymore.
We will fix that latter.
 
If you find any other issues with Latex, thanks to post them here!
 
Regards,
 
...