Fix offset of new text nodes

presentation
Ulrich Huber 7 years ago
parent 565fd6a66a
commit 708c3cf2df
  1. 4
      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())
{

Loading…
Cancel
Save