summaryrefslogtreecommitdiff
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
parent97c2a2a7ecae12bf376558997805c24c3b6e3e07 (diff)
arrow issue (fixes #51)
-rw-r--r--src/data/edge.cpp2
-rw-r--r--src/tikzit.h2
-rw-r--r--tikzit.pro2
3 files changed, 3 insertions, 3 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"
diff --git a/tikzit.pro b/tikzit.pro
index 692433d..b7b155d 100644
--- a/tikzit.pro
+++ b/tikzit.pro
@@ -2,7 +2,7 @@
QT += core gui widgets network
-VERSION = 2.1
+VERSION = 2.1.1
test {
CONFIG += testcase