Issue #229, #209 FLA export text positions

This commit is contained in:
Jindra Petk
2013-07-13 15:49:49 +02:00
parent e8248a964b
commit cc3e70f6ae

View File

@@ -2184,8 +2184,13 @@ public class XFLConverter {
String matStr = "";
matStr += "<matrix>";
RECT bounds = tag.getBounds();
matrix.translateX += bounds.Xmin + 40/*??*/;
matrix.translateY += bounds.Ymin + 40/*??*/;
if ((tag instanceof DefineTextTag) || (tag instanceof DefineText2Tag)) {
MATRIX textMatrix = tag.getTextMatrix();
matrix = matrix.merge(textMatrix);
} else {
matrix.translateX += bounds.Xmin;
matrix.translateY += bounds.Ymin;
}
matStr += convertMatrix(matrix);
matStr += "</matrix>";
if ((tag instanceof DefineTextTag) || (tag instanceof DefineText2Tag)) {