diff options
Diffstat (limited to 'tikzit/src/data/edge.cpp')
-rw-r--r-- | tikzit/src/data/edge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tikzit/src/data/edge.cpp b/tikzit/src/data/edge.cpp index 3ff6c6e..6802b2d 100644 --- a/tikzit/src/data/edge.cpp +++ b/tikzit/src/data/edge.cpp @@ -117,14 +117,14 @@ void Edge::updateControls() { } // TODO: calculate head and tail properly, not just for circles - if (_source->style().isNone()) { + if (_source->style()->isNone()) { _tail = src; } else { _tail = QPointF(src.x() + std::cos(outAngleR) * 0.1, src.y() + std::sin(outAngleR) * 0.1); } - if (_target->style().isNone()) { + if (_target->style()->isNone()) { _head = targ; } else { _head = QPointF(targ.x() + std::cos(inAngleR) * 0.1, |