mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Fix bug #7324 (Latex export silently fails with uncodable characters)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37796 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a889fd0438
commit
2969cb53e2
@ -342,6 +342,7 @@ Buffer::Impl::Impl(Buffer * owner, FileName const & file, bool readonly_,
|
|||||||
temppath = cloned_buffer_->d->temppath;
|
temppath = cloned_buffer_->d->temppath;
|
||||||
file_fully_loaded = true;
|
file_fully_loaded = true;
|
||||||
params = cloned_buffer_->d->params;
|
params = cloned_buffer_->d->params;
|
||||||
|
gui_ = cloned_buffer->d->gui_;
|
||||||
bibfiles_cache_ = cloned_buffer_->d->bibfiles_cache_;
|
bibfiles_cache_ = cloned_buffer_->d->bibfiles_cache_;
|
||||||
bibinfo_ = cloned_buffer_->d->bibinfo_;
|
bibinfo_ = cloned_buffer_->d->bibinfo_;
|
||||||
bibinfo_cache_valid_ = cloned_buffer_->d->bibinfo_cache_valid_;
|
bibinfo_cache_valid_ = cloned_buffer_->d->bibinfo_cache_valid_;
|
||||||
@ -3553,8 +3554,14 @@ bool Buffer::doExport(string const & format, bool put_in_tempdir,
|
|||||||
// LaTeX backend
|
// LaTeX backend
|
||||||
else if (backend_format == format) {
|
else if (backend_format == format) {
|
||||||
runparams.nice = true;
|
runparams.nice = true;
|
||||||
if (!makeLaTeXFile(FileName(filename), string(), runparams))
|
if (!makeLaTeXFile(FileName(filename), string(), runparams)) {
|
||||||
|
if (d->cloned_buffer_) {
|
||||||
|
d->cloned_buffer_->d->errorLists["Export"] =
|
||||||
|
d->errorLists["Export"];
|
||||||
|
errors("Export");
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
} else if (!lyxrc.tex_allows_spaces
|
} else if (!lyxrc.tex_allows_spaces
|
||||||
&& contains(filePath(), ' ')) {
|
&& contains(filePath(), ' ')) {
|
||||||
Alert::error(_("File name error"),
|
Alert::error(_("File name error"),
|
||||||
@ -3562,8 +3569,14 @@ bool Buffer::doExport(string const & format, bool put_in_tempdir,
|
|||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
runparams.nice = false;
|
runparams.nice = false;
|
||||||
if (!makeLaTeXFile(FileName(filename), filePath(), runparams))
|
if (!makeLaTeXFile(FileName(filename), filePath(), runparams)) {
|
||||||
|
if (d->cloned_buffer_) {
|
||||||
|
d->cloned_buffer_->d->errorLists["Export"] =
|
||||||
|
d->errorLists["Export"];
|
||||||
|
errors("Export");
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string const error_type = (format == "program")
|
string const error_type = (format == "program")
|
||||||
|
Loading…
Reference in New Issue
Block a user