put image before the shape on shape replace

This commit is contained in:
honfika@gmail.com
2015-06-11 06:33:24 +02:00
parent 853ef1053d
commit 6c18532c34

View File

@@ -45,7 +45,13 @@ public class ShapeImporter {
DefineBitsJPEG2Tag jpeg2Tag = new DefineBitsJPEG2Tag(swf, null, swf.getNextCharacterId(), newData);
jpeg2Tag.setModified(true);
swf.tags.add(jpeg2Tag);
int idx = swf.tags.indexOf(st);
if (idx != -1) {
swf.tags.add(idx, jpeg2Tag);
} else {
swf.tags.add(jpeg2Tag);
}
swf.updateCharacters();
st.setModified(true);
SHAPEWITHSTYLE shapes = jpeg2Tag.getShape(st.getRect(), true);