Buffers for Math Insets
Richard Kimberly Heck
rikiheck at lyx.org
Sat Oct 12 02:38:44 UTC 2019
On 10/11/19 10:21 PM, Richard Kimberly Heck wrote:
> I'm working on bug #11104 (refstyle support in math) and have been
> running into a number of problems involving unset Buffer members for
> math insets. (I see a lot of warnings about this in stable, too.) The
> basic problem is that I need to access the BufferParams to find out
> whether we are using refstyle or not. But if the Buffer member isn't set....
> Might it make sense to call something like inset().setBuffer() whenever
> we go through updateBuffer? That is obviously overkill, but I don't know
> how else to ensure that the math insets are handled properly.
PS We seem to reset the Buffers for whenever we move the mouse, so it
can't be that expensive. But if we do it whenever we updateBuffer, then
maybe we wouldn't need to do it whenever we move the mouse?
More information about the lyx-devel