]> git.lyx.org Git - features.git/commitdiff
Fix for horizontal/vertical lines allowed in plain equations bug
authorMartin Vermeer <martin.vermeer@hut.fi>
Tue, 22 Mar 2005 12:34:48 +0000 (12:34 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Tue, 22 Mar 2005 12:34:48 +0000 (12:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9737 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_hullinset.C

index 9fe691f00fcf2e727dc01cf3161e9fc56b7a0b74..7c4d353336d167a34526a6852e38f5a650584b10 100644 (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
index 0993c32a59c8a2ef12265e6900284bd918c4c1d0..58811da4e7bb314eab429e2916f662da336f9196 100644 (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: