Hyperlink interferes with visibility

0 votes
asked Nov 16, 2016 in Bug by poi (1,200 points)
edited Nov 16, 2016 by poi

This code illustrates a minor bug(?)

@startuml
    class Operation << (H,#E6FFE6)  >> {
    __todo/fixme__
     -is_abstract   [[ blaha(xyz,12) { tooltip } ]]
    }
@enduml

The visibility symbol in front of "is_abstract" is a red filled square, whereas I expected the square not to be filled (edges only).  It's the "()" inside the "[[]]", which makes the square filled.

http://www.plantuml.com/plantuml/img/7Oqn2eD054HxJp6GHi4Gai9An4P9bmE8B5_Ta8NLBxi_O2BUNTtfvZ6FARsGa-ze8npfBNcFrwmTYU49UOxucLwghAwhB06A0ciOAYKyyErjbb4h5H2knYlgl3ZgvQXDWyxIX-Bbzq_lZmGhXDcAcR6XROEpHIZrD9ptEm00

Above, I tried to make a short example. In my code I use [[]] to include hyperlinks, which in the MATLAB IDE opens the source code file at the appropriate line. (A bit like in https://www.youtube.com/watch?v=QjwXITp6fwg)

1 Answer

+1 vote
answered Nov 16, 2016 by plantuml (295,000 points)

Thanks for your feedback.

As you have stated, parenthesis in the link incorrectly turn the field to be a method.
We are going to fix this in next beta/release.

In the meantime, you can use {field} notation to force a correct drawing.

@startuml
class Operation << (H,#E6FFE6)  >> {
    __todo/fixme__
    {field} -is_abstract   [[ blaha(xyz,12) { tooltip } ]]
    }
@enduml


http://www.plantuml.com/plantuml/uml/7Own2eCm60Ptd-A3BWgMqWvE8YvAjpw0IFWraGQYaUGls8QyUuCt7XnSwvaSVrQJpOQynsjNZbZR3NMD_5bUkghlkwe0cWOXGq88jjBU5dsiIeXJXKKh8oEksWkQF3kQEUbXm6JeJVdn_PNtHu40jjQmtX4nZcSQirPjCWty0G00
 

commented Nov 16, 2016 by anonymous
"{field}" did it. Thanks so much!
/poi
...