Fixed #2122 -header command did not support negative integers for displayrect

This commit is contained in:
Jindra Petřík
2023-11-10 17:27:37 +01:00
parent 8ff1056bcd
commit e3b4e8b8bc
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -4740,7 +4740,7 @@ public class CommandLineArgumentParser {
Boolean gfx = null;
Integer version = null;
Pattern displayRectPattern = Pattern.compile("\\[(?<x1>[0-9.]+)(?<x1px>px)?,(?<y1>[0-9.]+)(?<y1px>px)?,(?<x2>[0-9.]+)(?<x2px>px)?,(?<y2>[0-9.]+)(?<y2px>px)?\\]");
Pattern displayRectPattern = Pattern.compile("\\[(?<x1>-?[0-9.]+)(?<x1px>px)?,(?<y1>-?[0-9.]+)(?<y1px>px)?,(?<x2>-?[0-9.]+)(?<x2px>px)?,(?<y2>-?[0-9.]+)(?<y2px>px)?\\]");
boolean printOnly = args.size() == 1;