]> git.lyx.org Git - features.git/commit
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, 18 Jun 2020 13:48:22 +0000 (15:48 +0200)
commit0141a0fab5e0418c35d4a8d0c77d871384bb1614
tree566f73c5b4506312cb85301ade471c24c7327770
parent528c4f94a576ec8b7e62cab862f1167b3022615c
Fix insertion of text characters in math

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.
src/Cursor.cpp
src/mathed/InsetMathNest.cpp