Why do some relations point in the wrong direction when the linetype is ortho?

0 votes
asked Mar 1, 2016 in Bug by polim (120 points)
Hello
 
I have an interesting phenomenon. When I switched the linetype of my class diagram to orthogonal it drew some of the relations in the opposite direction. I tried to reduce it to a simple example: 
 
@startuml
skinparam linetype ortho
class A {
}
class B {
}
class C {
}
class D {
}
A *-> B
A *-> C : toC
A *-> D
@enduml
 
When I render this, the "toC" relation points in the wrong direction. I tried to play around and maybe it has to do with the label on the relation, but I'm not sure.
 
The call to PlantUML has these parameters:  -v -tsvg -graphvizdot <pathToDot> build/plantuml/*.txt

1 Answer

+1 vote
answered Mar 1, 2016 by plantuml (297,300 points)
Hello,

Thanks for the report : this is indeed interesting.

For some unknown reasons, output generated by Graphviz does not follow the usual order in some cases. We wrote some hack to detect those inversions.

So this should be fixed in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Tell us if it's not working for you. This will be released in next official release.
commented Mar 2, 2016 by polim (120 points)
Thanks a lot for the fast response.

The direction is now correct, but now I see that the labels of the relation are also on the wrong side (sorry that I missed that before). I just had a look at the documentation and there might also be other things like the "extra arrow" that could also be wrong.
...