Buffers for Math Insets

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sat Oct 12 09:25:10 UTC 2019

Le 12/10/2019 à 04:38, Richard Kimberly Heck a écrit :
> 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....

I have not seen so many of these.

>> 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?

What is the piece of code you are referring to? I agree that 
updateBuffer is a good place to do that and it would indeed not be 


More information about the lyx-devel mailing list