diff options
Diffstat (limited to 'app-office/lyx/files/2.3.patches')
-rw-r--r-- | app-office/lyx/files/2.3.patches | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app-office/lyx/files/2.3.patches b/app-office/lyx/files/2.3.patches index 1a8585c..c2b2407 100644 --- a/app-office/lyx/files/2.3.patches +++ b/app-office/lyx/files/2.3.patches @@ -175,3 +175,44 @@ index 8fe7ddada2..8b2be2981d 100644 } // rename branches in the document executeBranchRenaming(); +diff --git a/src/Converter.cpp b/src/Converter.cpp +index e272d08a64..85770dc42a 100644 +--- a/src/Converter.cpp ++++ b/src/Converter.cpp +@@ -823,6 +823,14 @@ bool Converters::runLaTeX(Buffer const & buffer, string const & command, + if (result & LaTeX::ERRORS) + buffer.bufferErrors(terr, errorList); + ++ if ((result & LaTeX::UNDEF_CIT) || (result & LaTeX::UNDEF_REF)) { ++ errorList.push_back(ErrorItem(_("Undefined reference"), ++ _("Undefined reference or citation was found during the build, please check the Log."), ++ &buffer)); ++ } ++ ++ ++ + if (!errorList.empty()) { + // We will show the LaTeX Errors GUI later which contains + // specific error messages so it would be repetitive to give +@@ -852,6 +860,7 @@ bool Converters::runLaTeX(Buffer const & buffer, string const & command, + int const ERROR_MASK = + LaTeX::NO_LOGFILE | + LaTeX::ERRORS | ++ LaTeX::UNDEF_REF | + LaTeX::NO_OUTPUT; + + return (result & ERROR_MASK) == 0; +diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp +index df20f7b285..34a1b87721 100644 +--- a/src/LaTeX.cpp ++++ b/src/LaTeX.cpp +@@ -711,6 +711,9 @@ int LaTeX::scanLogFile(TeXErrors & terr) + + if (contains(token, "file:line:error style messages enabled")) + fle_style = true; ++ if (contains(token, "There were undefined citations.")||contains(token, "There were undefined references.")) ++ retval |= UNDEF_REF; ++ + + if (prefixIs(token, "LaTeX Warning:") || + prefixIs(token, "! pdfTeX warning")) { |