Fix details position if export from Detail mode. red #391.
--HG-- branch : develop
This commit is contained in:
parent
d09de4155b
commit
a6976fd1ee
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user