From 2b26b986bc80ccb941dd120548082a9781f1a045 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 24 Sep 2016 15:05:17 +0300 Subject: [PATCH] Fix recalculation scene after creating new PP. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 3f0b08067..944ea75f5 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -271,8 +271,8 @@ void MainWindow::AddPP(const QString &PPName) comboBoxDraws->blockSignals(false); // Show best for new PP - ui->view->fitInView(doc->ActiveDrawBoundingRect(), Qt::KeepAspectRatio); VMainGraphicsView::NewSceneRect(ui->view->scene(), ui->view); + ui->view->fitInView(doc->ActiveDrawBoundingRect(), Qt::KeepAspectRatio); ui->view->NewFactor(ui->view->transform().m11()); ui->actionNewDraw->setEnabled(true);