On Fri, Apr 05, 2024 at 01:58:16PM +0000, Jean-Marc Lasgouttes wrote:
> commit 5e8578837fea0321998eac04222102986261666d
> Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
> Date:   Mon Nov 27 15:13:56 2023 +0100
> 
>     Avoid some full metrics computations related to math previews
>     
>     When entering/leaving a math hull inset, a Update::Force flag was set,
>     in case the metrics of the inset would change because of a switch
>     between normal and preview representation.
>     
>     When entering the inset, this code is now used only when the inset was
>     in preview mode.
>     
>     In both cases, Update::Force is replaced with Update::SinglePar.
>     
>     This requites in Text::dispatch to honor Update::SinglePar when it has
>     been set by some lfun, even when singleparupdate is false.
>     
>     Part of bug #12297.
> ---
>  src/Text.cpp                 |  2 +-
>  src/mathed/InsetMathHull.cpp | 13 ++++++++-----
>  2 files changed, 9 insertions(+), 6 deletions(-)

A bisect led me here. I was trying to reproduce an issue that Andrew
reported, but I think it is actually a different issue. I attach
Andrew's example file.

Recipe:

1. Enable preview in preferences.
2. Click on the math equation row 1.
3. Click somewhere in the text "Preview test:".

I attach 3 screenshots. I would expect screenshot1.png and
screenshot3.png to be the same, but the row stays shifted.

Can anyone reproduce?

Scott

Attachment: test.23.lyx
Description: application/lyx

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to