}
-auto_ptr<InsetBase> InsetOptArg::clone() const
+auto_ptr<InsetBase> InsetOptArg::doClone() const
{
return auto_ptr<InsetBase>(new InsetOptArg(*this));
}
OutputParams const & runparams) const
{
ostringstream ss;
- InsetText::latex(buf, ss, runparams);
+ int ret = InsetText::latex(buf, ss, runparams);
string str = ss.str();
- if (str.find(']') != string::npos)
+ if (str.find(']') != string::npos)
str = '{' + str + '}';
os << '[' << str << ']';
- return str.length() + 2;
+ return ret;
}