Give an error message when path to file contains spaces.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1917 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-04-14 08:10:52 +00:00
parent 69204a88fd
commit 8a58460189

View File

@ -71,7 +71,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)