diff --git a/designer/src/com/fr/design/mainframe/alphafine/AlphaFineHelper.java b/designer/src/com/fr/design/mainframe/alphafine/AlphaFineHelper.java index 572de96a72..3c1b30ddaa 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/AlphaFineHelper.java +++ b/designer/src/com/fr/design/mainframe/alphafine/AlphaFineHelper.java @@ -22,7 +22,7 @@ public class AlphaFineHelper { } public static String findFolderName (String text) { - String[] textArray = text.split("/"); + String[] textArray = text.split(File.separator); if (textArray != null && textArray.length > 1) { return textArray[textArray.length - 2]; diff --git a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java index 0951faf64e..06ae35e188 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java +++ b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java @@ -314,7 +314,7 @@ public class AlphaFineDialog extends UIDialog { @Override protected BufferedImage doInBackground() throws Exception { WorkBook workBook = (WorkBook) TemplateWorkBookIO.readTemplateWorkBook(FRContext.getCurrentEnv(), fileName); - BufferedImage bufferedImage = new ImageExporter().export(workBook); + BufferedImage bufferedImage = new ImageExporter().exportToImage(workBook); return bufferedImage; }