From 12e3d1d2e20dc221f17d377b28ff29a3ae45f5ad Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 21 Mar 2017 11:21:25 -0400 Subject: [PATCH] Small correction to parsing of LOF file --- src/import/ImportLOF.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/import/ImportLOF.cpp b/src/import/ImportLOF.cpp index 1519230a1..722a4f428 100644 --- a/src/import/ImportLOF.cpp +++ b/src/import/ImportLOF.cpp @@ -368,7 +368,8 @@ void LOFImportFileHandle::lofOpenFiles(wxString* ln) // To identify filename and open it tokenholder = temptok1.GetNextToken(); - targetfile = temptok1.GetNextToken(); + wxString targettoken = temptok1.GetNextToken(); + targetfile = targettoken; // If path is relative, make absolute path from LOF path if(!wxIsAbsolutePath(targetfile)) { @@ -400,7 +401,7 @@ void LOFImportFileHandle::lofOpenFiles(wxString* ln) } // Set tok to right after filename - temptok2.SetString(targetfile); + temptok2.SetString(targettoken); tokenplace = temptok2.CountTokens(); for (int i = 0; i < tokenplace; i++)