summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/edge.cpp2
-rw-r--r--src/tikzit.h2
2 files changed, 2 insertions, 2 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;
}
diff --git a/src/tikzit.h b/src/tikzit.h
index 3dcbbd1..743e3f0 100644
--- a/src/tikzit.h
+++ b/src/tikzit.h
@@ -49,7 +49,7 @@
#ifndef TIKZIT_H
#define TIKZIT_H
-#define TIKZIT_VERSION "2.1.0"
+#define TIKZIT_VERSION "2.1.1"
#include "mainwindow.h"
#include "mainmenu.h"