]> 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)
committerGuillaume Munch <gm@lyx.org>
Sun, 17 Apr 2016 14:25:49 +0000 (15:25 +0100)
commit9bf7d99def0364fc3693355e17adde9d4dcf307e
tree42e9f7029c001e5f4efe212b58c10ad07a07891a
parente3ab552ccb55f976d5395a346e0035f863cd30fa
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