GNOME Bugzilla – Bug 629620
[UML] Re-enable group editing of suppress/visible attributes/operations
Last modified: 2019-03-20 11:49:23 UTC
The UML diagram wich I work on is quite large. To make it more readable on a small scale for presentation, I tried to show only the class names without the attributes and operations. Therefore I selected all classes in my diagram and set the options 'visible attributes' and 'visible operations' to 'no'. When I try then to save the file I get the error messages: 'Internal error saving diagram con_point_nr >= other_obj->num_connections' and: 'Internal error -1 writing file <my_path>\__dia9HBLIV' I guess this is caused by the associations connected before to the attributes and now hanging in the void. However if I do the same operation by selecting each class separately and removing the ticks on 'attributes visible' and 'operations visible' the diagram can be saved without error messages. /oli g.
Reducing severity, this neither "blocks development and/[n]or testing work" (see: https://bugzilla.gnome.org/page.cgi?id=fields.html#importance ) It is an intersting problem, though ;) Part of the validation logic of (i.e. disconnecting lines) is done in the UML Class dialog's UI code (search for e.g. disconnected_connections). Thus it is not executes on the code path used for multiple object changes. Even more intersting: the infrastructure for (multiple object) property changes does not allow to provide undo information for side-effects (here disconnecting) of property changes. BTW: what do you expect to happen with the connections pointing to invisible attributes/operations?
There is an easy fix avoiding the effect commited now: http://git.gnome.org/browse/dia/commit/?id=bcd8c9cd393413180b59022cead44fabf826bf0e I'm leaving this open as enhancement becuase it still might be desirable to change these specific peroperties during group editing. Changing the original subject "Internal error saving diagram con_point_nr >= other_obj->num_connections on saving UML diagram after setting attributes and operations to invisible"
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/283.