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
* pattern will be moved. Looks very ugly. It is best solution that i have now.
*/
if (pattern->DataDetails()->size() > 0)
{
ActionDetails(true);
ui->view->ZoomFitBest();
}
if (not ui->actionDraw->isChecked())
{
ActionDraw(true);
}
ui->view->ZoomFitBest();
VMainGraphicsView::NewSceneRect(sceneDraw, ui->view);
VMainGraphicsView::NewSceneRect(sceneDetails, ui->view);
if (pattern->DataDetails()->size() > 0)
{
ActionDetails(true);
ui->view->ZoomFitBest();
}
if (not ui->actionDraw->isChecked())
{
ActionDraw(true);
ui->view->ZoomFitBest();
}
}
//---------------------------------------------------------------------------------------------------------------------