Do zoom fit best current pattern piece only in Draw mode.
--HG-- branch : develop
This commit is contained in:
parent
678792ca5c
commit
72399472a1
|
@ -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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user