Fixed: #1609 First frame missing in frame to PDF export

This commit is contained in:
Jindra Petřík
2021-02-16 22:30:12 +01:00
parent 86f2f7fdce
commit fb19b832f6
2 changed files with 8 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ All notable changes to this project will be documented in this file.
- AS3 direct editation - unary minus (negate) compiled as 0 - value
- #1159, #1608 Regexp syntax hilight when not a regexp (only division) again
- Graphviz Graph not showing AS3 exception end
- #1609 First frame missing in frame to PDF export
### Changed
- #1565, #1407, #1350 On BinaryData SWF save, parent SWF is saved

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.exporters;
import com.jpacker.JPacker;
@@ -458,9 +459,13 @@ public class FrameExporter {
p.setSize(img0.getWidth() + 10, img0.getHeight() + 10);
pf.setPaper(p);
Graphics g = job.getGraphics(pf);
g.drawImage(img0, 5, 5, img0.getWidth(), img0.getHeight(), null);
g.dispose();
for (int i = 0; frameImages.hasNext(); i++) {
BufferedImage img = frameImages.next();
BufferedImage img = frameImages.next();
g = job.getGraphics(pf);
g.drawImage(img, 5, 5, img.getWidth(), img.getHeight(), null);
g.dispose();
}