Fixed issue #438. Broken switching pattern pieces.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-01-29 16:28:05 +02:00
parent 74285749be
commit 558c0d75f5

View File

@ -3901,20 +3901,32 @@ void MainWindow::ZoomFirstShow()
/* If don't call ZoomFitBest() twice, after first scaling or moving pattern piece, scene change coordinate and whole /* If don't call ZoomFitBest() twice, after first scaling or moving pattern piece, scene change coordinate and whole
* pattern will be moved. Looks very ugly. It is best solution that i have now. * pattern will be moved. Looks very ugly. It is best solution that i have now.
*/ */
ActionDetails(true);
ui->view->ZoomFitBest();
ActionDraw(true); if (pattern->DataDetails()->size() > 0)
{
ActionDetails(true);
ui->view->ZoomFitBest();
}
if (not ui->actionDraw->isChecked())
{
ActionDraw(true);
}
ui->view->ZoomFitBest(); ui->view->ZoomFitBest();
VMainGraphicsView::NewSceneRect(sceneDraw, ui->view); VMainGraphicsView::NewSceneRect(sceneDraw, ui->view);
VMainGraphicsView::NewSceneRect(sceneDetails, ui->view); VMainGraphicsView::NewSceneRect(sceneDetails, ui->view);
ActionDetails(true); if (pattern->DataDetails()->size() > 0)
ui->view->ZoomFitBest(); {
ActionDetails(true);
ui->view->ZoomFitBest();
}
ActionDraw(true); if (not ui->actionDraw->isChecked())
ui->view->ZoomFitBest(); {
ActionDraw(true);
}
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------