mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
f527d0a134
commit
75a281a7c6
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user