Skip to content

Commit

Permalink
fix #23928 - correctly handle saved file path
Browse files Browse the repository at this point in the history
  • Loading branch information
stoecker committed Sep 19, 2024
1 parent 66f5466 commit aeaab75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class OpenDataSessionImporter implements SessionLayerImporter {
public Layer load(Element elem, ImportSupport support, ProgressMonitor progressMonitor) throws IOException, IllegalDataException {
OsmDataSessionImporter.checkMetaVersion(elem);
String fileStr = OsmDataSessionImporter.extractFileName(elem, support);
File pathname = new File(fileStr.startsWith("file:/") ? fileStr.replace("file:/", "") : fileStr);
File pathname = new File(fileStr.startsWith("file:") ? fileStr.replace("file:", "") : fileStr);
for (AbstractImporter importer : OdPlugin.getInstance().importers) {
if (importer.acceptFile(pathname)) {
importer.setFile(pathname);
Expand Down

0 comments on commit aeaab75

Please sign in to comment.