Give an error message when path to file contains spaces.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1916 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-04-14 08:04:54 +00:00
parent 985674193f
commit fe1849bbbc
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-04-14 Dekel Tsur <dekelts@tau.ac.il>
* src/exporter.C (Export): Give an error message when path to file
contains spaces.
2001-04-12 Dekel Tsur <dekelts@tau.ac.il>
* src/LaTeX.C (deplog): Always check that foundfile exists.

View File

@ -70,7 +70,11 @@ bool Exporter::Export(Buffer * buffer, string const & format,
// LaTeX backend
else if (backend_format == format)
buffer->makeLaTeXFile(filename, string(), true);
else
else if (contains(buffer->filepath, ' ')) {
WriteAlert(_("Cannot run latex."),
_("The path to the lyx file cannot contain spaces."));
return false;
} else
buffer->makeLaTeXFile(filename, buffer->filepath, false);
string outfile_base = (put_in_tempdir)