]> git.lyx.org Git - features.git/commit
Fix bug #11007
authorEnrico Forestieri <forenr@lyx.org>
Sun, 28 Feb 2021 21:32:11 +0000 (22:32 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 28 Feb 2021 21:32:11 +0000 (22:32 +0100)
commit52ce0ff49a0f9a5c33459428b2fdffa24febafce
treeb835de1e5d7f59417375e58d7ee862e7e2532281
parent939dc4076fe577a40dea99ec668c92c7a6a1d711
Fix bug #11007

The math color inset inherits the mode of the containing inset.
This mode is inferred by the kind of font in effect. Setting the
right mode allows to insert spaces where these should be allowed.
Another small glitch was that the selection was always parsed in
math mode, so that any space was swallowed, even if the inset would
allow them.
src/Cursor.cpp
src/mathed/InsetMathColor.cpp
src/mathed/InsetMathColor.h