Bug 424916

Summary: Generalization with several template parameters is too far from the upper class boundary
Product: [Applications] umbrello Reporter: Robert Hairgrove <code>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: REPORTED ---    
Severity: minor    
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Illustrates the behavior described

Description Robert Hairgrove 2020-08-02 11:03:45 UTC
Created attachment 130573 [details]
Illustrates the behavior described

SUMMARY
The generalization starts from the derived class and is directed toward the base class. In a class diagram, if the derived class is templated with many parameters, the generalization line starts too far away from the top line of the class' containing box.

STEPS TO REPRODUCE
1. Create two classes and add four template parameters to one of them;
2. Add both classes to a class diagram
3. Draw a generalization from the templated class to the other one.

OBSERVED RESULT
The generalization appears to begin at the vertical coordinate of the template box, not of the class containing box (see attached PNG file).

EXPECTED RESULT
Line should start at the top of the class box.

SOFTWARE/OS VERSIONS
Linux Ubuntu 18.04.4
Qt Version: 5.x

ADDITIONAL INFORMATION
Not sure how difficult it would be to change this behavior without introducing other bugs. One can always export the diagram as an image and fix it with the GIMP or another paint program. At any rate, it is definitely only a minor problem.