Updated Branches: refs/heads/develop 18ce29425 -> bdbeac2fd
fix embedding from swf assets in a swc Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/46cff6ec Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/46cff6ec Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/46cff6ec Branch: refs/heads/develop Commit: 46cff6ecf5ca3215856d3fada572c025fc5e09ff Parents: 18ce294 Author: Alex Harui <[email protected]> Authored: Tue Aug 27 10:15:00 2013 -0700 Committer: Alex Harui <[email protected]> Committed: Tue Aug 27 10:15:00 2013 -0700 ---------------------------------------------------------------------- .../flex/compiler/internal/units/EmbedCompilationUnit.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/46cff6ec/compiler/src/org/apache/flex/compiler/internal/units/EmbedCompilationUnit.java ---------------------------------------------------------------------- diff --git a/compiler/src/org/apache/flex/compiler/internal/units/EmbedCompilationUnit.java b/compiler/src/org/apache/flex/compiler/internal/units/EmbedCompilationUnit.java index 3550e27..c4207bc 100644 --- a/compiler/src/org/apache/flex/compiler/internal/units/EmbedCompilationUnit.java +++ b/compiler/src/org/apache/flex/compiler/internal/units/EmbedCompilationUnit.java @@ -256,7 +256,10 @@ public class EmbedCompilationUnit extends CompilationUnitBase else tagName = qname.replace('.', '/'); - return new SWFTagsRequestResult(abc.getABCBytes(), tagName, abc.getEmbeds()); + Collection<EmbedData> embeds = abc.getEmbeds(); + if (embeds.size() == 0) + embeds = Collections.singleton(embedData); + return new SWFTagsRequestResult(abc.getABCBytes(), tagName, embeds); } finally {
