diff options
author | Johan Paulsson <gonz@users.sourceforge.net> | 2013-01-24 16:30:02 +0000 |
---|---|---|
committer | Johan Paulsson <gonz@users.sourceforge.net> | 2013-01-24 16:30:02 +0000 |
commit | 702a3875c5c7c5c937e55d50039ccb0c7bced754 (patch) | |
tree | ee41f8802ec6b7904de7921fb97fa7f262e129aa /tikzit/src/common/Graph.m | |
parent | 310d4379dd0f439e9a988c3202add12021384690 (diff) |
Anchor support for the parser and osx gui
Diffstat (limited to 'tikzit/src/common/Graph.m')
-rw-r--r-- | tikzit/src/common/Graph.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tikzit/src/common/Graph.m b/tikzit/src/common/Graph.m index 7f7345c..c8da128 100644 --- a/tikzit/src/common/Graph.m +++ b/tikzit/src/common/Graph.m @@ -726,10 +726,10 @@ [code appendFormat:@"\t\t\\draw%@ (%@%@) to %@(%@%@);\n", ([edata isEqual:@""]) ? @"" : [NSString stringWithFormat:@" %@", edata], [[e source] name], - ([[e source] style] == nil) ? @".center" : @"", + ([[e source] style] == nil) ? @".center" : ([e sourceAnchor] == @"") ? @"" : [NSString stringWithFormat:@".%@", [e sourceAnchor]], nodeStr, ([e source] == [e target]) ? @"" : [[e target] name], - ([e source] != [e target] && [[e target] style] == nil) ? @".center" : @"" + ([e source] != [e target] && [[e target] style] == nil) ? @".center" : ([e targetAnchor] == @"") ? @"" : [NSString stringWithFormat:@".%@", [e targetAnchor]] ]; } |