]> git.lyx.org Git - features.git/commit
Math commands used in text mode now always use the current selection as contents
authorGuillaume Munch <gm@lyx.org>
Sat, 1 Aug 2015 07:05:33 +0000 (08:05 +0100)
committerGuillaume Munch <gm@lyx.org>
Sun, 13 Sep 2015 23:33:02 +0000 (00:33 +0100)
commit61145265fc977aba31b3c029ea19edbbea21e97b
treeba6db6260e4925fdf499d331fffbab2f446f5414
parent699a6db9fa168f91458a17d4f30c124e52a38054
Math commands used in text mode now always use the current selection as contents
(#9762)

* fixes a bug where this was already the expected behaviour of
  math-subscript and math-superscript but failed.

* corrects the behaviour where if there is \newcommand in the
  selection, then a corresponding macro template is introduced
  instead of a math inset.

  * fixes a bug where math-display, math-subscript and math-supscript
    would also introduce such a macro template in a way unrelated to
    their function. Now it only happens with math-mode without
    arguments.

  * fixes a bug where a text that does not denote a macro definition,
    e.g. "aaa\newcommandaaa", would produce \invalidmacro.
src/Text3.cpp
src/mathed/MacroTable.cpp
src/mathed/MathMacroTemplate.cpp
src/mathed/MathMacroTemplate.h