Skip to content

Commit

Permalink
For lines, resolve constraints after orthogonal constraints are appli…
Browse files Browse the repository at this point in the history
…ed. This

will prevent cyclic resolve errors.
  • Loading branch information
amolenaar committed Sep 8, 2009
1 parent 4c85792 commit 6bcb8c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gaphor/diagram/diagramline.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def postload(self):
# First update matrix and solve constraints (NE and SW handle are
# lazy and are resolved by the constraint solver rather than set
# directly.
#self.canvas.update_matrix(self)
#self.canvas.solver.solve()
self.canvas.update_matrix(self)
self.canvas.solver.solve()

if hasattr(self, '_load_head_connection'):
self._connect(self.head, self._load_head_connection)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_issue_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def setUp(self):

def test_bug(self):
"""
This test loads the file.
Load file.
This does not nearly resemble the error, since the model should
be loaded from within the mainloop (which will delay all updates).
Expand All @@ -26,7 +26,7 @@ def test_bug(self):

def test_bug_idle(self):
"""
This test loads the file.
Load file in gtk main loop.
This does not nearly resemble the error, since the model should
be loaded from within the mainloop (which will delay all updates).
Expand Down

0 comments on commit 6bcb8c3

Please sign in to comment.