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
This commit is contained in:
Martin Vermeer 2005-03-22 12:34:48 +00:00
parent f527d0a134
commit 75a281a7c6
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-03-22 Martin Vermeer <martin.vermeer@hut.fi>
* math_hullinset.C (getStatus): intercept and suppress the
adding of grid lines in case of a plain equation hull
2005-03-15 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* math_nestinset.C (doDispatch): create a MathBoxInset for mbox

View File

@ -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: