]> git.lyx.org Git - lyx.git/blobdiff - src/Row.cpp
GuiAbout: enforce a reasonable width (show all tabs)
[lyx.git] / src / Row.cpp
index 4a2f2e58486948bd0cc8990dfd71839a5260c32a..57f02e2987867729d1643f70b976202944a9bec6 100644 (file)
 
 #include "support/debug.h"
 #include "support/lassert.h"
+#include "support/lyxalgo.h"
 
-#include <algorithm>
 #include <ostream>
 
-#include <boost/next_prior.hpp>
-
 using namespace std;
 
 namespace lyx {
@@ -417,7 +415,7 @@ void Row::shortenIfNeeded(pos_type const keep, int const w)
                end_ = cit->endpos;
                dim_.wid = left_margin + cit->dim.wid;
                // If there are other elements, they should be removed.
-               elements_.erase(boost::next(cit), end);
+               elements_.erase(next(cit, 1), end);
        }
 }