Do zoom fit best current pattern piece only in Draw mode.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-04-20 09:35:13 +03:00
parent 678792ca5c
commit 72399472a1

View File

@ -1294,6 +1294,8 @@ void MainWindow::ClosedDialogInsertNode(int result)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void MainWindow::ZoomFitBestCurrent() void MainWindow::ZoomFitBestCurrent()
{
if(drawMode)
{ {
const QRectF rect = doc->ActiveDrawBoundingRect(); const QRectF rect = doc->ActiveDrawBoundingRect();
if (rect.isEmpty()) if (rect.isEmpty())
@ -1312,6 +1314,7 @@ void MainWindow::ZoomFitBestCurrent()
transform.m31(), transform.m32(), transform.m33()); transform.m31(), transform.m32(), transform.m33());
ui->view->setTransform(transform); ui->view->setTransform(transform);
} }
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**