]> git.lyx.org Git - lyx.git/blobdiff - src/output_docbook.cpp
Account for old versions of Pygments
[lyx.git] / src / output_docbook.cpp
index 12061ef462c3581e0b832e23be3164088ac9725b..6ab9c9d9f076bd08641567efa20c0530af32d16c 100644 (file)
@@ -32,6 +32,8 @@
 #include "support/lstrings.h"
 #include "support/lyxalgo.h"
 
+#include <iostream>
+
 using namespace std;
 using namespace lyx::support;
 
@@ -327,8 +329,8 @@ void docbookParagraphs(Text const & text,
 
        // if only part of the paragraphs will be outputed
        if (runparams.par_begin !=  runparams.par_end) {
-               par = next(paragraphs.begin(), runparams.par_begin);
-               pend = next(paragraphs.begin(), runparams.par_end);
+               par = lyx::next(paragraphs.begin(), runparams.par_begin);
+               pend = lyx::next(paragraphs.begin(), runparams.par_end);
                // runparams will be passed to nested paragraphs, so
                // we have to reset the range parameters.
                const_cast<OutputParams&>(runparams).par_begin = 0;