1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-23 15:41:09 +02:00

Small correction to parsing of LOF file

This commit is contained in:
Paul Licameli 2017-03-21 11:21:25 -04:00
parent 5e3a4fa29d
commit 12e3d1d2e2

View File

@ -368,7 +368,8 @@ void LOFImportFileHandle::lofOpenFiles(wxString* ln)
// To identify filename and open it // To identify filename and open it
tokenholder = temptok1.GetNextToken(); tokenholder = temptok1.GetNextToken();
targetfile = temptok1.GetNextToken(); wxString targettoken = temptok1.GetNextToken();
targetfile = targettoken;
// If path is relative, make absolute path from LOF path // If path is relative, make absolute path from LOF path
if(!wxIsAbsolutePath(targetfile)) { if(!wxIsAbsolutePath(targetfile)) {
@ -400,7 +401,7 @@ void LOFImportFileHandle::lofOpenFiles(wxString* ln)
} }
// Set tok to right after filename // Set tok to right after filename
temptok2.SetString(targetfile); temptok2.SetString(targettoken);
tokenplace = temptok2.CountTokens(); tokenplace = temptok2.CountTokens();
for (int i = 0; i < tokenplace; i++) for (int i = 0; i < tokenplace; i++)