From 708c3cf2df30b1dd41c70396f034b4436a7b2781 Mon Sep 17 00:00:00 2001 From: Ulrich Huber Date: Mon, 25 Mar 2019 18:30:37 +0100 Subject: [PATCH] Fix offset of new text nodes --- src/gui/PageView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/PageView.cpp b/src/gui/PageView.cpp index 08e6b1c1..3be95ad7 100644 --- a/src/gui/PageView.cpp +++ b/src/gui/PageView.cpp @@ -278,10 +278,10 @@ void XojPageView::startText(double x, double y) ToolHandler* h = xournal->getControl()->getToolHandler(); ownText = true; text = new Text(); - text->setX(x); - text->setY(y); text->setColor(h->getColor()); text->setFont(settings->getFont()); + text->setX(x); + text->setY(y - text->getElementHeight() / 2); if (xournal->getControl()->getAudioController()->isRecording()) {