]> 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>
Tue, 26 Jul 2022 20:47:53 +0000 (22:47 +0200)
commita65e12d6f3a1d3fab9e0ca4b3053f8c34fad108a
tree33ae6dd02055586f69fa29d84b5ae8bd7ca5d484
parenta42f7ea7cd0e4d5d9594f363bce628451515d24b
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 outputing
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