summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2019-01-10 17:42:21 +0100
committerAleks Kissinger <aleks0@gmail.com>2019-01-10 17:42:21 +0100
commit86e379ef12ad08dd9554b1cc288ff50382dd788f (patch)
treedd4be569609fc8feded48d2a09c3199fda57d449 /src/data
parent97c2a2a7ecae12bf376558997805c24c3b6e3e07 (diff)
arrow issue (fixes #51)
Diffstat (limited to 'src/data')
-rw-r--r--src/data/edge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/edge.cpp b/src/data/edge.cpp
index 864d5ed..41fc2bb 100644
--- a/src/data/edge.cpp
+++ b/src/data/edge.cpp
@@ -409,7 +409,7 @@ QPointF Edge::bezierTangent(qreal start, qreal end) const
// normalise
qreal len = sqrt(dx*dx + dy*dy);
- if (almostZero(len)) {
+ if (!almostZero(len)) {
dx = (dx / len) * 0.1;
dy = (dy / len) * 0.1;
}