Skip to content

Commit d4c0bf3

Browse files
authored
LT-22318 LIFT import fails when in root directory (#551)
Fixed problem with getting path when lift file was in a root directory instead of a folder. Change-Id: I414296077a2f88ef1aaf9352240e43c08c81900b
1 parent 2f691ea commit d4c0bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/LexText/LexTextControls/LiftImportDlg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private object ImportLIFT(IThreadedProgress progressDlg, params object[] paramet
244244
File.Move(filePath, Path.Combine(sWritingSystems, file));
245245
}
246246
}
247-
var sTempOrigFile = Path.Combine(sLIFTtempFolder, sOrigFile.Substring(sLIFTfolder.Length + 1));
247+
var sTempOrigFile = Path.Combine(sLIFTtempFolder, Path.GetFileName(sOrigFile));
248248
string sFilename;
249249
//Do a LIFT Migration to the current version of LIFT if it is needed.
250250
bool fMigrationNeeded = Migrator.IsMigrationNeeded(sTempOrigFile);

0 commit comments

Comments
 (0)