After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 389329 - UML class: comment line length messes up diagram after loading
UML class: comment line length messes up diagram after loading
Status: RESOLVED DUPLICATE of bug 341887
Product: dia
Classification: Other
Component: objects
0.95
Other All
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-25 00:27 UTC by Simon Lehmann
Modified: 2007-01-02 18:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon Lehmann 2006-12-25 00:27:58 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:
Comment 1 Hans Breuer 2007-01-02 18:02:05 UTC
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 ***