diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-08-25 20:34:38 +0100 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-08-25 20:34:38 +0100 |
commit | e707060efcf1cb751b7f1a0e26051bc6b93b123f (patch) | |
tree | 0a1c53e72f502f0c07be446b6795e3fe86963777 /tikzit/src/common/Edge.m | |
parent | 778d71f996a91273da7fa4625d0c66ceacb4cd63 (diff) |
Recalculate edge properties when shapes are refreshed
Shape sizes can change (if you're actively editing a shape), which can
mean that some edge properties need to be recalculated.
We do this at the graph, rather than edge, level to avoid the overhead
of installing a notification for every single edge.
Diffstat (limited to 'tikzit/src/common/Edge.m')
-rw-r--r-- | tikzit/src/common/Edge.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tikzit/src/common/Edge.m b/tikzit/src/common/Edge.m index ea20d2a..ba80aef 100644 --- a/tikzit/src/common/Edge.m +++ b/tikzit/src/common/Edge.m @@ -127,6 +127,10 @@ return NSMakePoint (pt.x + dx, pt.y + dy); } +- (void)recalculateProperties { + dirty = YES; +} + - (void)updateControls { // check for external modification to the node locations if (src.x != [source point].x || src.y != [source point].y || |