Spare a few cpu cycles on average.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32474 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-12-11 01:46:57 +00:00
parent c2befc2b1e
commit 9e423f23fa

View File

@ -1303,7 +1303,7 @@ void Cursor::niceInsert(docstring const & t, Parse::flags f, bool enter)
{
MathData ar(buffer());
asArray(t, ar, f);
if (ar.size() == 1 && (selection() || enter))
if (ar.size() == 1 && (enter || selection()))
niceInsert(ar[0]);
else
insert(ar);