diff --git a/src/converter.C b/src/converter.C index 3577adb9c4..46de668a93 100644 --- a/src/converter.C +++ b/src/converter.C @@ -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(). diff --git a/src/frontends/xforms/FormErrorList.h b/src/frontends/xforms/FormErrorList.h index 9a544fbac0..fe1c060235 100644 --- a/src/frontends/xforms/FormErrorList.h +++ b/src/frontends/xforms/FormErrorList.h @@ -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(); };