]> git.lyx.org Git - lyx.git/commit
Set buffer_ correctly when inseting a math macro over a selection
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 25 Apr 2024 12:28:10 +0000 (14:28 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 25 Apr 2024 12:32:18 +0000 (14:32 +0200)
commitb45a957929a78cefc729a0fa984214eb83357d42
treed5b467d132e8c9124013d592fc8346d6b2b1fbfb
parentaf3521881c209fa0019414096334057f3b6e8c75
Set buffer_ correctly when inseting a math macro over a selection

The code that handles this special macro insertion (in
Cursor::mathMacroClose())) is very weird: it inserts the contents of
the macro _after_ the macro and later, since the macro is 'greedy', it
will eat this contents and put it in its first macro cell.

Does it make sense to you? It does not ake sense to me either. Anyway,
this is the point where one should make sure that the buffer is set.

Fixes ticket #12682.
src/mathed/InsetMathMacro.cpp