Fixed #1193 FLA export - DefineEditText position

This commit is contained in:
Jindra Petřík
2023-11-05 12:39:49 +01:00
parent 988b2c73cf
commit ad39eec7a5
2 changed files with 5 additions and 2 deletions

View File

@@ -4362,7 +4362,9 @@ public class XFLConverter {
writer.writeAttribute("variableName", det.variableName);
}
writer.writeStartElement("matrix");
convertMatrix(matrix, writer);
Matrix matrix2 = new Matrix(matrix);
matrix2 = matrix2.preConcatenate(Matrix.getTranslateInstance(det.bounds.Xmin + 40, det.bounds.Ymin + 40)); // 40 is magic value, I don't know why but it's there
convertMatrix(matrix2.toMATRIX(), writer);
writer.writeEndElement();
writer.writeStartElement("textRuns");
String txt = "";