-InsetInfo::InsetInfo(Buffer const & buf, string const & name)
+InsetInfo::InsetInfo(Buffer * buf, string const & name)
: InsetCollapsable(buf), type_(UNKNOWN_INFO), name_()
{
setAutoBreakRows(true);
_("Missing \\end_inset at this point."),
from_utf8(token));
}
- setLayout(buffer().params());
updateInfo();
}
string type;
name_ = trim(split(name, type, ' '));
type_ = nameTranslator().find(type);
- setLayout(buffer().params());
updateInfo();
}
FileName file(to_utf8(icon_name));
if (!file.exists())
break;
- InsetGraphics * inset = new InsetGraphics(buffer());
+ InsetGraphics * inset = new InsetGraphics(buffer_);
InsetGraphicsParams igp;
igp.filename = file;
inset->setParams(igp);