if (im) {
InsetMathHull * hull = im->asHullInset();
if (hull)
- hull->recordLocation(it);
+ hull->updateMacros(it, ourscope);
}
if (insit.inset->lyxCode() != MATHMACRO_CODE)
} // namespace
+// FIXME This may or may not be the right place to do this.
+void InsetMathHull::updateMacros(DocIterator const & us, DocIterator const &)
+{
+ recordLocation(us);
+}
+
+
void InsetMathHull::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted)
{
if (!buffer_) {
void setBuffer(Buffer &) override;
///
void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
+ /// This must be called by any subclass that overrides it!
+ void updateMacros(DocIterator const & us, DocIterator const & scope) override;
///
void addToToc(DocIterator const & di, bool output_active,
UpdateType utype, TocBackend & backend) const override;