Partial fix for bug #7330 (No error notification with 'View master document')

With this patch, the bug is fixed when export-in-thread is disabled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37842 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-03-03 13:57:46 +00:00
parent 78e483710d
commit b8cdbc7be8

View File

@ -119,11 +119,12 @@ void GuiErrorList::paramsToDialog()
ErrorList const & GuiErrorList::errorList() const
{
if (&bufferview()->buffer() == buf_) {
error_list_ = from_master_ ?
bufferview()->buffer().masterBuffer()->errorList(error_type_)
: bufferview()->buffer().errorList(error_type_);
}
Buffer const * buffer = from_master_
? bufferview()->buffer().masterBuffer()
: &bufferview()->buffer();
if (buffer == buf_)
error_list_ = buffer->errorList(error_type_);
return error_list_;
}
@ -159,10 +160,6 @@ bool GuiErrorList::goTo(int item)
if (err.par_id == -1)
return false;
if (from_master_)
// FIXME: implement
return false;
DocIterator dit = buf_->getParFromID(err.par_id);
if (dit == doc_iterator_end(buf_)) {