Fix recalculation scene after creating new PP.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-09-24 15:05:17 +03:00
parent 1ed9983ee7
commit 2b26b986bc

View File

@ -271,8 +271,8 @@ void MainWindow::AddPP(const QString &PPName)
comboBoxDraws->blockSignals(false); comboBoxDraws->blockSignals(false);
// Show best for new PP // Show best for new PP
ui->view->fitInView(doc->ActiveDrawBoundingRect(), Qt::KeepAspectRatio);
VMainGraphicsView::NewSceneRect(ui->view->scene(), ui->view); VMainGraphicsView::NewSceneRect(ui->view->scene(), ui->view);
ui->view->fitInView(doc->ActiveDrawBoundingRect(), Qt::KeepAspectRatio);
ui->view->NewFactor(ui->view->transform().m11()); ui->view->NewFactor(ui->view->transform().m11());
ui->actionNewDraw->setEnabled(true); ui->actionNewDraw->setEnabled(true);