mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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:
parent
69204a88fd
commit
8a58460189
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user