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 629620 - (con_point>=num_con) [UML] Re-enable group editing of suppress/visible attributes/operations
(con_point>=num_con)
[UML] Re-enable group editing of suppress/visible attributes/operations
Status: RESOLVED OBSOLETE
Product: dia
Classification: Other
Component: objects
0.97.x
Other All
: Normal enhancement
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-14 08:06 UTC by oliver.gubler
Modified: 2019-03-20 11:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description oliver.gubler 2010-09-14 08:06:18 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.
Comment 1 Hans Breuer 2010-09-18 16:02:46 UTC
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?
Comment 2 Hans Breuer 2011-01-09 19:07:51 UTC
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"
Comment 3 GNOME Infrastructure Team 2019-03-20 11:49:23 UTC
-- 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.