X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Foutput_latex.cpp;h=5d385e5e09929b54bed248091641bd30007a3b67;hb=fb90076e9065018ee0ef9e16bae2a5d9dcc9436d;hp=ee6fc313207259b40db544c40f26900fd813a1a2;hpb=0eb9477be7998f8d66b4fe5c8948de5a22261e1e;p=lyx.git diff --git a/src/output_latex.cpp b/src/output_latex.cpp index ee6fc31320..5d385e5e09 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -470,9 +470,9 @@ void latexArgInsets(ParagraphList const & pars, ParagraphList::const_iterator pi // get the first paragraph in sequence with this layout and depth pit_type offset = 0; while (true) { - if (prev(pit, offset) == pars.begin()) + if (lyx::prev(pit, offset) == pars.begin()) break; - ParagraphList::const_iterator priorpit = prev(pit, offset + 1); + ParagraphList::const_iterator priorpit = lyx::prev(pit, offset + 1); if (priorpit->layout() == current_layout && priorpit->params().depth() == current_depth) ++offset; @@ -480,7 +480,7 @@ void latexArgInsets(ParagraphList const & pars, ParagraphList::const_iterator pi break; } - ParagraphList::const_iterator spit = prev(pit, offset); + ParagraphList::const_iterator spit = lyx::prev(pit, offset); for (; spit != pars.end(); ++spit) { if (spit->layout() != current_layout || spit->params().depth() < current_depth)