#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 {
double w = 0;
//handle first the two bounds of the element
- if (i == endpos && !(inset && inset->lyxCode() == SEPARATOR_CODE))
+ if (i == endpos && type != VIRTUAL
+ && !(inset && inset->lyxCode() == SEPARATOR_CODE))
w = rtl ? 0 : full_width();
else if (i == pos || type != STRING)
w = rtl ? full_width() : 0;
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);
}
}