From: Enrico Forestieri Date: Mon, 28 Feb 2011 01:50:13 +0000 (+0000) Subject: Fix bug #7324 (Latex export silently fails with uncodable characters) X-Git-Tag: 2.0.0~635 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2969cb53e245a0058b1b75c10195883660401629;p=features.git 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 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 7d25df1e38..1e7f06f5af 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -342,6 +342,7 @@ Buffer::Impl::Impl(Buffer * owner, FileName const & file, bool readonly_, temppath = cloned_buffer_->d->temppath; file_fully_loaded = true; params = cloned_buffer_->d->params; + gui_ = cloned_buffer->d->gui_; bibfiles_cache_ = cloned_buffer_->d->bibfiles_cache_; bibinfo_ = cloned_buffer_->d->bibinfo_; 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 else if (backend_format == format) { 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; + } } else if (!lyxrc.tex_allows_spaces && contains(filePath(), ' ')) { Alert::error(_("File name error"), @@ -3562,8 +3569,14 @@ bool Buffer::doExport(string const & format, bool put_in_tempdir, return false; } else { 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; + } } string const error_type = (format == "program")