> I tried starting to do this, but I think we'd probably have to do it all > in one go, due to how the factory works: the inset Buffer gets set in > createInset, not at creation time in createInsetHelper. So we'd at least > have to pass the Buffer to createInsetHelper; but then most insets would > ignore it. I guess we could do: > if (inset && !inset.buffer()) > inset->setBuffer(buf); > as a temporary measure?
Did you have a look at my patch? By retrieving an existing inset in BufferView, instead of creating one in LyXFunc, the passed inset is guaranteed to have a buffer_. Bo