Fixed GFX path resolving on linux when path has backslashes

This commit is contained in:
Jindra Petřík
2024-07-31 22:14:23 +02:00
parent 45199d043f
commit 738208cddd

View File

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