Fixed issue #438. Broken switching pattern pieces.

(grafted from 6448ff0d78086ccb1182cf981c95239f36d22e83)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-01-29 16:30:57 +02:00
parent 7bc6100efa
commit a693f9e57d

View File

@ -3945,20 +3945,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();
}
}
//---------------------------------------------------------------------------------------------------------------------