]> git.lyx.org Git - features.git/commitdiff
Fix issue with CAS.
authorEnrico Forestieri <forenr@lyx.org>
Sun, 9 Nov 2014 01:19:00 +0000 (02:19 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 9 Nov 2014 01:19:00 +0000 (02:19 +0100)
See http://thread.gmane.org/gmane.editors.lyx.devel/153516
This regression was due to a thinko in [43f6b167/lyxgit].

src/mathed/InsetMathHull.cpp

index 4b9e0ce66f3c6cd632f1be1576dcdb33c2234836..55185a22cd57b5d8b52ab0b42745fafed0197629 100644 (file)
@@ -1354,7 +1354,7 @@ void InsetMathHull::doExtern(Cursor & cur, FuncRequest & func)
                MathData ar;
                if (cur.inMathed() && cur.selection()) {
                        asArray(grabAndEraseSelection(cur), ar);
-               } else if (!pos == cur.cell().empty()) {
+               } else if (pos == cur.cell().size()) {
                        ar = cur.cell();
                        lyxerr << "use whole cell: " << ar << endl;
                } else {