missing bit

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6987 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-05-20 16:56:07 +00:00
parent 2a882902eb
commit 01478feb03
2 changed files with 12 additions and 4 deletions

View File

@ -16,6 +16,7 @@
#include "lyxrc.h"
#include "buffer.h"
#include "bufferview_funcs.h"
#include "errorlist.h"
#include "LaTeX.h"
#include "lyx_cb.h" // ShowMessage()
#include "gettext.h"
@ -469,8 +470,12 @@ bool Converters::scanLog(Buffer const * buffer, string const & command,
LaTeX latex("", filename, "");
TeXErrors terr;
int result = latex.scanLogFile(terr);
if (bv && (result & LaTeX::ERRORS))
bv->showErrorList();
if (bv && (result & LaTeX::ERRORS)) {
ErrorList el(*buffer, terr);
bv->setErrorList(el);
bv->showErrorList(_("LaTeX"));
}
return true;
}
@ -498,7 +503,9 @@ bool Converters::runLaTeX(Buffer const * buffer, string const & command)
if (bv && (result & LaTeX::ERRORS)) {
//show errors
bv->showErrorList();
ErrorList el(*buffer, terr);
bv->setErrorList(el);
bv->showErrorList(_("LaTeX"));
}
// check return value from latex.run().

View File

@ -33,7 +33,8 @@ private:
virtual void update();
/// Filter the inputs on callback from xforms
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
/// Goto to this error
void goTo(int);
///
void updateContents();
};