GNOME Bugzilla – Bug 389329
UML class: comment line length messes up diagram after loading
Last modified: 2007-01-02 18:02:05 UTC
Please describe the problem: When opening an existing UML diagramm in which some classes have been saved with a custom comment line length (and a comment, of course), the line length is obviously not loaded from the file. Instead it is set to the default of 40. Because of this, these classes are displayed with different height and width, but all lines that are connected to the class are still displayed as if it had the correct size. If the class is moved a little, the lines snap to their right places on the border. Steps to reproduce: 1. Create a new diagram 2. Add a UML class 3. Enter a comment for the class which is long enough to be wrapped and set it to be displayed. 4. Enter a non standard comment line length (e.g. 20) 5. Connect some lines to the class, either to a connection point or directly to the class. 6. Save the diagram to standard .dia format. 7. Close the diagram and load it again. Actual results: The comment line length is set to its default (40) which causes the class to be displayed with different height and width. The lines connected to the class are displayed as if the class still had the size as it was saved. Expected results: The comment line length to be correctly loaded and used, thus displaying the diagram just as it was when it was saved. Does this happen every time? yes Other information:
The bug is already fixed in CVS/SVN : 2006-06-15 Hans Breuer <hans@breuer.org> * objects/UML/class.c : dont break reading comment_line_length by misguide compatibility code. Fixes bug #341887 *** This bug has been marked as a duplicate of 341887 ***