From: Enrico Forestieri Date: Sun, 9 Nov 2014 01:19:00 +0000 (+0100) Subject: Fix issue with CAS. X-Git-Tag: 2.2.0alpha1~1559 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9f613a5f7eb69cb658e2f97a996270db4129a12e;p=features.git Fix issue with CAS. See http://thread.gmane.org/gmane.editors.lyx.devel/153516 This regression was due to a thinko in [43f6b167/lyxgit]. --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 4b9e0ce66f..55185a22cd 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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 {