]> git.lyx.org Git - lyx.git/commit
Try to make sure that math insets have a properly set buffer_ member
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 14 Oct 2022 20:42:21 +0000 (22:42 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 1 Jun 2024 16:45:43 +0000 (18:45 +0200)
commit76188dcdf11e06e8772e900de04ccbfb079bafac
tree1fc846909484c0b22865343742d7aaa72a9b752c
parentd7800919909f120c9fa8e4f5e3805371ec263337
Try to make sure that math insets have a properly set buffer_ member

Set the buffer of contents that is added to a MathData object through
MathData::insert() (both versions)
MathData::push_back()
asArray()

Also in math macros, initialize look_ with the relevant buffer.

This reduces the number of insets hat do not have a proper buffer.

See #13050 for discussion of this issue.

(cherry picked from commit f3c5ff9cb72c5231f1e1e81452e67d6f12dadecb)
src/mathed/InsetMathMacroTemplate.cpp
src/mathed/MathData.cpp
src/mathed/MathData.h
src/mathed/MathSupport.cpp