From: Jean-Marc Lasgouttes Date: Thu, 28 Mar 2019 12:18:34 +0000 (+0100) Subject: Fix insertion of text characters in math X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2307 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dfba0d8667c82c07fdec7fa8da4f7d460277bb70;hp=dfba0d8667c82c07fdec7fa8da4f7d460277bb70;p=lyx.git 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. ---