From 01478feb03a4f46fad25576e262f1fa03c3b726c Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Tue, 20 May 2003 16:56:07 +0000 Subject: [PATCH] missing bit git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6987 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/converter.C | 13 ++++++++++--- src/frontends/xforms/FormErrorList.h | 3 ++- 2 files changed, 12 insertions(+), 4 deletions(-) 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(); }; -- 2.39.5