Browse Source

pastojs: fixed create relative paths without shared based directory

mattias 6 years ago
parent
commit
7651157066
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/packages/pastojs/src/pas2jsfilecache.pp

+ 1 - 1
compiler/packages/pastojs/src/pas2jsfilecache.pp

@@ -1810,7 +1810,7 @@ function TPas2jsFilesCache.TryCreateRelativePath(const Filename, BaseDirectory:
   UsePointDirectory: boolean; out RelPath: String): Boolean;
   UsePointDirectory: boolean; out RelPath: String): Boolean;
 begin
 begin
   Result:=Pas2jsFileUtils.TryCreateRelativePath(Filename, BaseDirectory,
   Result:=Pas2jsFileUtils.TryCreateRelativePath(Filename, BaseDirectory,
-    UsePointDirectory, true, RelPath);
+    UsePointDirectory, false, RelPath);
 end;
 end;
 
 
 function TPas2jsFilesCache.FindIncludeFileName(const aFilename,
 function TPas2jsFilesCache.FindIncludeFileName(const aFilename,