Fix details position if export from Detail mode. red #391.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-07-20 19:14:19 +03:00
parent d09de4155b
commit a6976fd1ee
2 changed files with 3 additions and 8 deletions

View File

@ -464,13 +464,10 @@ void MainWindowsNoGUI::ExportDetailsAsApparelLayout(const DialogSaveLayout &dial
for (int i=0; i < listDetails.count(); ++i)
{
QTransform moveMatrix;
matrix = matrix.translate(listDetails.at(i).GetMx(), listDetails.at(i).GetMy());
matrix = matrix.translate(-mx, -my);
moveMatrix *= listDetails.at(i).GetMatrix();
QTransform moveMatrix = listDetails[i].GetMatrix();
moveMatrix = moveMatrix.translate(listDetails.at(i).GetMx(), listDetails.at(i).GetMy());
moveMatrix = moveMatrix.translate(-mx, -my);
listDetails[i].SetMatrix(moveMatrix);
listDetails[i].SetMx(listDetails.at(i).GetMx()-mx);
listDetails[i].SetMy(listDetails.at(i).GetMy()-my);
}
const QString name = dialog.Path() + QLatin1String("/") + dialog.FileName() + QString::number(1)

View File

@ -648,8 +648,6 @@ bool VDxfEngine::ExportToAAMA(const QVector<VLayoutPiece> &details)
DRW_Insert *insert = new DRW_Insert();
insert->name = blockName.toStdString();
insert->basePoint = DRW_Coord(FromPixel(detail.GetMx(), varInsunits),
FromPixel(- detail.GetMy(), varInsunits), 0);
insert->layer = "1";
input->AddEntity(insert);