From cc3e70f6ae2ddaa4de71cc994e379269b4110d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Sat, 13 Jul 2013 15:49:49 +0200 Subject: [PATCH] Issue #229, #209 FLA export text positions --- .../src/com/jpexs/decompiler/flash/xfl/XFLConverter.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java b/trunk/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java index 76457c4a6..1d58e7416 100644 --- a/trunk/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java +++ b/trunk/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java @@ -2184,8 +2184,13 @@ public class XFLConverter { String matStr = ""; matStr += ""; 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 += ""; if ((tag instanceof DefineTextTag) || (tag instanceof DefineText2Tag)) {