From: Martin Vermeer Date: Tue, 22 Mar 2005 12:34:48 +0000 (+0000) Subject: Fix for horizontal/vertical lines allowed in plain equations bug X-Git-Tag: 1.6.10~14453 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=75a281a7c6c7f76c136b5f4025d0ddb133b90374;p=features.git Fix for horizontal/vertical lines allowed in plain equations bug git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9737 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 9fe691f00f..7c4d353336 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,9 @@ + +2005-03-22 Martin Vermeer + + * math_hullinset.C (getStatus): intercept and suppress the + adding of grid lines in case of a plain equation hull + 2005-03-15 Georg Baum * math_nestinset.C (doDispatch): create a MathBoxInset for mbox diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index 0993c32a59..58811da4e7 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -1122,6 +1122,17 @@ bool MathHullInset::getStatus(LCursor & cur, FuncRequest const & cmd, flag.enabled(false); return true; } + if ((type_ == "simple" + || type_ == "equation" + || type_ == "none") && + (s == "add-hline-above" || s == "add-hline-below" || + s == "add-vline-left" || s == "add-vline-right")) { + flag.message(bformat( + N_("Can't add grid lines in '%1$s'"), + type_)); + flag.enabled(false); + return true; + } return MathGridInset::getStatus(cur, cmd, flag); } default: