Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/arjan/backup/gaphor/trunk/gaphor@295 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
amolenaar committed May 10, 2004
1 parent ddd0fbe commit 8964cba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,5 +1,8 @@
2004-05-10 Arjan Molenaar <arjanmolenaar@hetnet.nl>

* gaphor/diagram/dependency.py, generalization.py: fixed bug which
avoids adding multiple dependencies/generalizations between two
classes.
* gaphor/ui/wrapbox.py: new file. replaces the C GtkWrapBox library.
* gaphor/ui/stereotypewindow.py: new file. This dialog should be used
to add/edit stereotypes.
Expand Down
2 changes: 1 addition & 1 deletion gaphor/diagram/dependency.py
Expand Up @@ -27,7 +27,7 @@ def find_relationship(self, head_subject, tail_subject):
#print 'supplier', supplier, supplier.client, tail_subject
if tail_subject in supplier.client:
# Check if the dependency is not already in our diagram
for item in self.subject.presentation:
for item in supplier.presentation:
if item.canvas is self.canvas and item is not self:
break
else:
Expand Down
2 changes: 1 addition & 1 deletion gaphor/diagram/generalization.py
Expand Up @@ -30,7 +30,7 @@ def find_relationship(self, head_subject, tail_subject):
for gen in tail_subject.generalization:
if gen.general is head_subject:
# check for this entry on self.canvas
for item in spec.subject.presentation:
for item in gen.presentation:
# Allow self to be returned. Avoids strange
# behaviour during loading
if item.canvas is self.canvas and item is not self:
Expand Down

0 comments on commit 8964cba

Please sign in to comment.