From 9f613a5f7eb69cb658e2f97a996270db4129a12e Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 9 Nov 2014 02:19:00 +0100 Subject: [PATCH] Fix issue with CAS. See http://thread.gmane.org/gmane.editors.lyx.devel/153516 This regression was due to a thinko in [43f6b167/lyxgit]. --- src/mathed/InsetMathHull.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2