]> git.lyx.org Git - lyx.git/commit
Reimplement support for numbering of equation previews
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 25 Jul 2022 20:09:14 +0000 (22:09 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 25 Jul 2022 22:19:20 +0000 (00:19 +0200)
commitf4da29306fc8acc0cca2ac6fe36f7dfcb58c2563
treebe9b81245e1ce81ce1b9ab074982fd9a4eee774f
parent2db682b97eff2362bb7865c7637881906bf0f2cf
Reimplement support for numbering of equation previews

This patch simplifies and fixes the generation of previews with
numbering. Instead of saving the counter values (which is complicated
and error prone), the \thequation macro is set to the numbers_ string
which has been computed by updateBuffer for screen display.

Harcoding the number in the formula means that two equations with
different numbers have different previews, which is the subject of the
bug.

The special code for saving counters in updateBuffer and putputing
them in preparePreview from 645f9fdf (ticket #6894) is removed and
replaced by this simpler approach.

This fixes ticket #11535.
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h