]> git.lyx.org Git - features.git/commit
Sanitize InsetMathHull and add a check for mutability in LFUN_MATH_MUTATE
authorGuillaume Munch <gm@lyx.org>
Mon, 14 Dec 2015 01:54:27 +0000 (01:54 +0000)
committerRichard Heck <rgheck@lyx.org>
Sat, 28 May 2016 21:42:31 +0000 (17:42 -0400)
commit935588f2de4703471c1dc9bac6ec0707bf3d4d8f
tree0c1e266a245b6df6a9532124e507d766251dbefa
parent1840b5992c9d8b3546812f29cfb742cce05ff947
Sanitize InsetMathHull and add a check for mutability in LFUN_MATH_MUTATE

Remove in particular all comparisons < and >= involving HullType.

Add a guard to make sure that mutate() only operates on types it has been
designed for. Then I figured I could use this new knowledge to give feedback
when math-mutate is not implemented via getStatus(). (To test this, insert a
regexp in Advanced Search & Replace and try to change it into a standard
equation via the contextual menu.)
src/mathed/InsetMath.h
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h