On 10/21/19 12:43 PM, Jean-Marc Lasgouttes wrote: > Le 21/10/2019 à 18:13, Richard Kimberly Heck a écrit : >>> 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? > > Sure, if we are sure that this propagates everywhere. But are we sure > that we will never have to access buffer() before updateBuffer has > been run on the whole document?
Only one way to find out... More seriously, I think we /shoudn't/ be doing anything that accesses buffer() before then, though there are some cases where we do. I think there is such a case in the cut and paste code, though I'm not sure. Riki
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel