#include "frontends/FontMetrics.h"
+#include <algorithm>
+
using namespace std;
namespace lyx {
InsetMathDelim::InsetMathDelim(Buffer * buf, docstring const & l,
docstring const & r)
- : InsetMathNest(buf, 1), left_(l), right_(r)
+ : InsetMathNest(buf, 1), left_(l), right_(r), dw_(0)
{}
InsetMathDelim::InsetMathDelim(Buffer * buf, docstring const & l, docstring const & r,
MathData const & ar)
- : InsetMathNest(buf, 1), left_(l), right_(r)
+ : InsetMathNest(buf, 1), left_(l), right_(r), dw_(0)
{
cell(0) = ar;
}
MathWordList::const_iterator it = words.find(left_);
if (it != words.end())
{
- docstring const req = it->second.requires;
+ string const req = it->second.requires;
if (!req.empty())
- features.require(to_ascii(req));
+ features.require(req);
}
it = words.find(right_);
if (it != words.end())
{
- docstring const req = it->second.requires;
+ string const req = it->second.requires;
if (!req.empty())
- features.require(to_ascii(req));
+ features.require(req);
}
}