#include "lyxrc.h"
#include "buffer.h"
#include "bufferview_funcs.h"
+#include "errorlist.h"
#include "LaTeX.h"
#include "lyx_cb.h" // ShowMessage()
#include "gettext.h"
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;
}
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().