[LyX/master] Mark insets with invalid buffer() in red in devel-mode.

Richard Kimberly Heck rikiheck at lyx.org
Mon Oct 21 16:13:35 UTC 2019


On 10/21/19 11:25 AM, Jean-Marc Lasgouttes wrote:
> commit 067d6dc759b819d2a40a4dea0b09736d474ddc24
> Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
> Date:   Mon Oct 21 16:45:03 2019 +0200
>
>     Mark insets with invalid buffer() in red in devel-mode.
>     
>     We tend to have insets which buffer() member is invalid. To help
>     debugging, this commit paints their background in red when devel-mode
>     is on.
>     
>     To this end, a new method develMode() is added to the Painter class.
>     
>     With this commit, it is easy to see that macro template do not have a
>     proper buffer set!

I was thinking to try adding inset().setBuffer() to the beginning of
updateBuffer() in master, as we discussed before, and see what happens.
And if that goes well, then to start removing manual setBuffer() calls
in various places, and see how that goes. Thoughts?

Riki




More information about the lyx-devel mailing list