]> git.lyx.org Git - features.git/commit
Allow pasting references to mathed
authorEnrico Forestieri <forenr@lyx.org>
Sat, 30 Jan 2021 00:32:40 +0000 (01:32 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 30 Jan 2021 00:32:40 +0000 (01:32 +0100)
commit22ee249c3ea6426dbf24956ae36986e3ee6f81c0
tree914afdb82e8f52f3d3b12d147a7d30e6730799d2
parentb1efc5a48e69c6f65dc01c4d58c97f0719c02483
Allow pasting references to mathed

A reference can be directly inserted into mathed but cannot be pasted
because the pasted material is returned in plain text format. This patch
allows getting a string from the cut stack in a suitable format allowing
the math parser to actually create an InsetRef.

Fixes #11539
src/CutAndPaste.cpp
src/CutAndPaste.h
src/Paragraph.cpp
src/Paragraph.h
src/mathed/InsetMathGrid.cpp