]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / Converter.cpp
index 86ad195cbad622f274986c1a8c1a1eae682ace90..d8d1dd1ca87a512388f024ad87506127ace1d9ab 100644 (file)
@@ -608,13 +608,13 @@ bool Converters::runLaTeX(Buffer const & buffer, string const & command,
                buffer.bufferErrors(terr, errorList);
 
        // check return value from latex.run().
-       if ((result & LaTeX::NO_LOGFILE)) {
+       if ((result & LaTeX::NO_LOGFILE) && !buffer.isClone()) {
                docstring const str =
                        bformat(_("LaTeX did not run successfully. "
                                               "Additionally, LyX could not locate "
                                               "the LaTeX log %1$s."), from_utf8(name));
                Alert::error(_("LaTeX failed"), str);
-       } else if (result & LaTeX::NO_OUTPUT) {
+       } else if ((result & LaTeX::NO_OUTPUT) && !buffer.isClone()) {
                Alert::warning(_("Output is empty"),
                               _("An empty output file was generated."));
        }
@@ -637,12 +637,12 @@ void Converters::buildGraph()
 {
        // clear graph's data structures
        G_.init(formats.size());
-       ConverterList::iterator beg = converterlist_.begin();
-       ConverterList::iterator const end = converterlist_.end();
        // each of the converters knows how to convert one format to another
        // so, for each of them, we create an arrow on the graph, going from 
        // the one to the other
-       for (ConverterList::iterator it = beg; it != end ; ++it) {
+       ConverterList::iterator it = converterlist_.begin();
+       ConverterList::iterator const end = converterlist_.end();
+       for (; it != end ; ++it) {
                int const from = formats.getNumber(it->from);
                int const to   = formats.getNumber(it->to);
                G_.addEdge(from, to);