Commit fa36a4fb authored by Yuri Chornoivan's avatar Yuri Chornoivan Committed by Adriaan de Groot
Browse files

Place the first newly created graph at the center of canvas when using 'Graph Document -> Tools'

parent e69785c5
Pipeline #21804 passed with stage
in 5 minutes and 18 seconds
......@@ -266,7 +266,7 @@ GenerateGraphWidget::~GenerateGraphWidget()
QPointF GenerateGraphWidget::documentCenter() const
{
QPointF center = QPointF(0, 0);
QPointF center = QPointF(geometry().center());
qreal xSum = 0;
qreal ySum = 0;
int number = m_document->nodes().length();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment