Fixed GFX path resolving on linux when path has backslashes

This commit is contained in:
Jindra Petřík
2024-08-05 11:17:25 +02:00
parent 45199d043f
commit 738208cddd
@@ -53,6 +53,8 @@ public abstract class AbstractGfxImageTag extends ImageTag {
protected BufferedImage getExternalBufferedImage(String fileName, int bitmapFormat) {
Path imagePath = null;
fileName = fileName.replace("\\", "/");
try {
imagePath = getSwf().getFile() == null ? null : Paths.get(getSwf().getFile()).getParent().resolve(Paths.get(fileName));
} catch (InvalidPathException ip) {