]> 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>
Wed, 15 Jun 2016 21:32:52 +0000 (22:32 +0100)
commit8e1e55c9e68bb9176cf95b169ae37d7dc89d8e4d
tree736ba3e03d6c42c736cdd11c7b82eb242efe710a
parent6d8863ad60a4c09dadeab10bc52adc1c03265969
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