From 47981c560c66e7ba043c9d8d0514af12e99e9fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 27 Sep 2025 23:29:21 +0200 Subject: [PATCH] Spelling fix --- .github/actions/spelling/expect.txt | 2 ++ .../com/jpexs/decompiler/flash/tags/DefineFontTag.java | 2 +- .../decompiler/flash/xfl/shapefixer/PathArea.java | 10 +++++----- .../decompiler/flash/xfl/shapefixer/ShapeFixer.java | 3 +-- .../flash/xfl/shapefixer/SwitchedFillSidesFixer.java | 4 ++-- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 10d9c5385..3da2fc0b6 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -274,6 +274,7 @@ betafreq betagamma betashift BEVELFILTER +bew bex bez bezout @@ -4014,6 +4015,7 @@ XButton xcenter xcontent xcopy +XCritical XCount XCursor xdg diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFontTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFontTag.java index ce8ebc685..700aca6bf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFontTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineFontTag.java @@ -157,7 +157,7 @@ public class DefineFontTag extends FontTag { @Override public void updateBounds() { - throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody + throw new UnsupportedOperationException("Not supported yet."); } @Override diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/PathArea.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/PathArea.java index 2e3bbed5a..6413abe58 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/PathArea.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/PathArea.java @@ -29,8 +29,8 @@ public final class PathArea { final double flatness = 0.5; final int limit = 10; - PathIterator it = shape.getPathIterator((AffineTransform) null); - FlatteningPathIterator fpi = new FlatteningPathIterator(it, flatness, limit); + PathIterator pathIterator = shape.getPathIterator((AffineTransform) null); + FlatteningPathIterator flatteningPathIterator = new FlatteningPathIterator(pathIterator, flatness, limit); double[] coords = new double[6]; List current = new ArrayList<>(); @@ -41,8 +41,8 @@ public final class PathArea { double lastY = 0; boolean hasOpen = false; - while (!fpi.isDone()) { - int seg = fpi.currentSegment(coords); + while (!flatteningPathIterator.isDone()) { + int seg = flatteningPathIterator.currentSegment(coords); switch (seg) { case PathIterator.SEG_MOVETO: // Start a new subpath @@ -85,7 +85,7 @@ public final class PathArea { // Should not happen because we flattened, but keep for completeness throw new IllegalStateException("Unexpected segment type: " + seg); } - fpi.next(); + flatteningPathIterator.next(); } // If path ended without SEG_CLOSE for the last subpath diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/ShapeFixer.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/ShapeFixer.java index 4ffb2368a..11a8d4e3a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/ShapeFixer.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/ShapeFixer.java @@ -32,7 +32,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.HashMap; -import java.util.HashSet; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; @@ -572,7 +571,7 @@ public class ShapeFixer { } } - //sharing start end end point + //sharing start end point if (t1Ref.size() == 2) { if ((t1Ref.get(0) == 0 || t1Ref.get(0) == 1) && (t1Ref.get(1) == 0 || t1Ref.get(1) == 1) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/SwitchedFillSidesFixer.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/SwitchedFillSidesFixer.java index 3cff5f514..df8e53bde 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/SwitchedFillSidesFixer.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/SwitchedFillSidesFixer.java @@ -69,7 +69,7 @@ public class SwitchedFillSidesFixer { return area / 2.0; } - private BezierEdge iedgeToBezier(IEdge ie) { + private BezierEdge iEdgeToBezier(IEdge ie) { assert (ie != null); if (ie instanceof CurvedEdge) { CurvedEdge ce = (CurvedEdge) ie; @@ -367,7 +367,7 @@ public class SwitchedFillSidesFixer { boolean clockwise = !polygon.ccw; for (IEdge e : list) { - BezierEdge be = iedgeToBezier(e); + BezierEdge be = iEdgeToBezier(e); BezierEdge beRev = be.reverse(); int localFs = globalToLocalFillStyleMap.get(fillStyleIdx);