]> git.lyx.org Git - lyx.git/commitdiff
Fix insertion of text characters in math
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 28 Mar 2019 12:18:34 +0000 (13:18 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 28 Mar 2019 12:22:38 +0000 (13:22 +0100)
Characters that needed to be inserted in text mode in mathed were not
correctly inserted. Here we do two fixes:

1/ in niceInsert(), do not replace the contents of the active insets
first cell with selection, insert selection instead. This wa sthe
cause of the bug: an empty selection replaced the contents that was
already in the cell.

2/ do not use niceInsert() anyway, insert() is perfect for what we
want to do.

Fixes bug #11527.


No differences found