From 75a281a7c6c7f76c136b5f4025d0ddb133b90374 Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Tue, 22 Mar 2005 12:34:48 +0000 Subject: [PATCH] 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 --- src/mathed/ChangeLog | 6 ++++++ src/mathed/math_hullinset.C | 11 +++++++++++ 2 files changed, 17 insertions(+) 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: -- 2.39.2