[Uml-devel] [umbrello] [Bug 321581] New: widgets floating point coordinates are loaded as int

Ralf Habacker ralf.habacker at freenet.de
Mon Jun 24 22:27:14 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=321581

            Bug ID: 321581
           Summary: widgets floating point coordinates are loaded as int
    Classification: Unclassified
           Product: umbrello
           Version: Git
          Platform: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: umbrello-devel at kde.org
          Reporter: ralf.habacker at freenet.de

Widgets and associations located on a class diagram uses float coordinates,
which are also saved as float coordinates into xmi files. When loading xmi
files those coordinates are loaded as int values, which may results in wrong
positions of widgets and/or assocation line points. 

https://projects.kde.org/projects/kde/kdesdk/umbrello/repository/revisions/master/entry/umbrello/widgets/umlwidget.cpp#L1294

https://projects.kde.org/projects/kde/kdesdk/umbrello/repository/revisions/master/entry/umbrello/widgets/associationline.cpp#L440


Reproducible: Always

Steps to Reproduce:
1. open umbrello
2. place two classes 
3. create an assocation between them 
4. autolayout vertically  
5. add several line points 
6. save as xmi file
7. reload xmi file

Actual Results:  
some line points may be displayed on a different place. 


Expected Results:  
line points should be displayed after loading as initial entered


There may be two possible solutions: 
1. save coordinates as int values 
2. load as float coordinates

-- 
You are receiving this mail because:
You are the assignee for the bug.




More information about the umbrello-devel mailing list