summaryrefslogtreecommitdiff
path: root/src/data/edge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/edge.cpp')
-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;
}