From 41f53ee52cc0babd883094745333fc30c61bd1ee Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Thu, 11 Nov 2004 09:44:11 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: file:///Users/arjan/backup/gaphor/trunk/gaphor@467 a8418922-720d-0410-834f-a69b97ada669 --- ChangeLog | 5 +++++ gaphor/diagram/klass.py | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0fcf54934e..da4a644ed5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-11 Arjan Molenaar + + * gaphor/diagram/klass.py: save width/height when + subject.ownedAttribute and subject.ownedOperation change. + 2004-11-10 Arjan Molenaar * data/plugins/xmiexport/__init__.py: Added action with save dialog. diff --git a/gaphor/diagram/klass.py b/gaphor/diagram/klass.py index 922b61db1d..f0603bf4b3 100644 --- a/gaphor/diagram/klass.py +++ b/gaphor/diagram/klass.py @@ -185,12 +185,16 @@ def on_subject_notify__ownedAttribute(self, subject, pspec=None): """ #log.debug('on_subject_notify__ownedAttribute') # Filter attributes that are connected to an association: + self.preserve_property('width') + self.preserve_property('height') self.sync_attributes() def on_subject_notify__ownedOperation(self, subject, pspec=None): """Called when the ownedOperation property of our subject changes. """ #log.debug('on_subject_notify__ownedOperation') + self.preserve_property('width') + self.preserve_property('height') self.sync_operations() # Groupable