Fix issue with CAS.

See http://thread.gmane.org/gmane.editors.lyx.devel/153516
This regression was due to a thinko in [43f6b167/lyxgit].
This commit is contained in:
Enrico Forestieri 2014-11-09 02:19:00 +01:00
parent 73a7bf9dad
commit 9f613a5f7e

View 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 {