]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
adjust
[lyx.git] / src / output_latex.cpp
index 247e8a399b618a25824971b4fc5bf43e0ee77c23..a5c0d02df7b84b8e3cc40c269f3dea89d0c0a5e4 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "support/lstrings.h"
 
+#include <boost/next_prior.hpp>
 
 namespace lyx {
 
@@ -225,7 +226,7 @@ int latexOptArgInsets(Buffer const & buf, Paragraph const & par,
        InsetList::const_iterator it = par.insetlist.begin();
        InsetList::const_iterator end = par.insetlist.end();
        for (; it != end && number > 0 ; ++it) {
-               if (it->inset->lyxCode() == Inset::OPTARG_CODE) {
+               if (it->inset->lyxCode() == OPTARG_CODE) {
                        InsetOptArg * ins =
                                static_cast<InsetOptArg *>(it->inset);
                        lines += ins->latexOptional(buf, os, runparams);