summaryrefslogtreecommitdiff
path: root/tikzit/src/gui/tikzview.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-01-03 22:32:37 +0100
committerAleks Kissinger <aleks0@gmail.com>2018-01-03 22:32:37 +0100
commit9d9bb836a1b83fab5bc408ffd7d4305e0d8b965a (patch)
tree626ae6d479690ef37065973f68acf11e9ae0cff1 /tikzit/src/gui/tikzview.cpp
parentc63dd506beefa844ddeab587a71af94063357372 (diff)
fixed jumping when nodes are added
Diffstat (limited to 'tikzit/src/gui/tikzview.cpp')
-rw-r--r--tikzit/src/gui/tikzview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tikzit/src/gui/tikzview.cpp b/tikzit/src/gui/tikzview.cpp
index a83c9ec..fe6c401 100644
--- a/tikzit/src/gui/tikzview.cpp
+++ b/tikzit/src/gui/tikzview.cpp
@@ -7,6 +7,7 @@ TikzView::TikzView(QWidget *parent) : QGraphicsView(parent)
{
setRenderHint(QPainter::Antialiasing);
setDragMode(QGraphicsView::RubberBandDrag);
+
_scale = 1.0f;
}