diff --git a/CHANGELOG.md b/CHANGELOG.md index b495e7136..1ecc44db7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file. - [#2116] DefineEditText display - apostroph decoding - [#2116] Apply colortransform after filters - [#2116] Limit maximum number of box blur pixels +- [#2122] `-header` command did not support negative integers for displayrect ## [20.0.0] - 2023-11-05 @@ -3266,6 +3267,7 @@ Major version of SWF to XML export changed to 2. [#2021]: https://www.free-decompiler.com/flash/issues/2021 [#2000]: https://www.free-decompiler.com/flash/issues/2000 [#2116]: https://www.free-decompiler.com/flash/issues/2116 +[#2122]: https://www.free-decompiler.com/flash/issues/2122 [#1130]: https://www.free-decompiler.com/flash/issues/1130 [#1220]: https://www.free-decompiler.com/flash/issues/1220 [#1717]: https://www.free-decompiler.com/flash/issues/1717 diff --git a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java index 847f4c33f..cfc81f7f2 100644 --- a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java +++ b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java @@ -4740,7 +4740,7 @@ public class CommandLineArgumentParser { Boolean gfx = null; Integer version = null; - Pattern displayRectPattern = Pattern.compile("\\[(?[0-9.]+)(?px)?,(?[0-9.]+)(?px)?,(?[0-9.]+)(?px)?,(?[0-9.]+)(?px)?\\]"); + Pattern displayRectPattern = Pattern.compile("\\[(?-?[0-9.]+)(?px)?,(?-?[0-9.]+)(?px)?,(?-?[0-9.]+)(?px)?,(?-?[0-9.]+)(?px)?\\]"); boolean printOnly = args.size() == 1;