]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/tex_helpers.C
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / tex_helpers.C
index 90e9635c846dfbbccc946be15c2c74e3858d99db..e2aa2d5bb933f59f38787df72e3612522ae3de71 100644 (file)
@@ -37,6 +37,7 @@ using support::LibFileSearch;
 using support::OnlyFilename;
 using support::package;
 using support::Path;
+using support::QuoteName;
 using support::split;
 using support::Systemcall;
 using support::token;
@@ -51,7 +52,8 @@ void rescanTexStyles()
        Path p(package().user_support());
        Systemcall one;
        one.startscript(Systemcall::Wait,
-                       "sh " + LibFileSearch("scripts", "TeXFiles.sh"));
+                       "sh " +
+                       QuoteName(LibFileSearch("scripts", "TeXFiles.sh")));
 }