Abdelrazak Younes wrote: > Alfredo Braunstein wrote: >> #3850 >> >> To reproduce: >> >> Load the userguide. With the cursor on the title (so the layout dropdown >> says 'Title') scroll down (wheel or scrollbar) to some math inset and >> click. The layout still says 'Title'. > > Does this patch solves the problem? > > This layout handling with the global current_layout variable is a *mess*.
Yes it does, and the patch looks good. ;-) A/