Issue #230 Export FLA issue with vector graphics stroke

This commit is contained in:
Jindra Petk
2013-07-13 13:46:21 +02:00
parent 6fd24e6073
commit e8248a964b

View File

@@ -445,14 +445,14 @@ public class XFLConverter {
}
}
if (lineStyles != null) {
if (lineStyles.lineStyles2 != null) { //(shapeNum == 4) {
if ((shapeNum == 4) && (lineStyles.lineStyles2 != null)) { //(shapeNum == 4) {
for (int l = 0; l < lineStyles.lineStyles2.length; l++) {
strokesStr += "<StrokeStyle index=\"" + (lineStyleCount + 1) + "\">";
strokesStr += convertLineStyle(characters, lineStyles.lineStyles2[l], shapeNum);
strokesStr += "</StrokeStyle>";
lineStyleCount++;
}
} else {
} else if (lineStyles.lineStyles != null) {
for (int l = 0; l < lineStyles.lineStyles.length; l++) {
strokesStr += "<StrokeStyle index=\"" + (lineStyleCount + 1) + "\">";
strokesStr += convertLineStyle(lineStyles.lineStyles[l], shapeNum);