Remove unneeded check for cur.pos() > 0.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30393 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-07-07 08:12:08 +00:00
parent fb57c00c0d
commit abdb069f9e

View File

@ -1569,7 +1569,6 @@ bool InsetMathNest::interpretChar(Cursor & cur, char_type const c)
return true; return true;
} }
if (cur.pos() > 0) {
MathMacro const * macro = cur.inset().asInsetMath()->asMacro(); MathMacro const * macro = cur.inset().asInsetMath()->asMacro();
if (macro && macro->displayMode() == MathMacro::DISPLAY_UNFOLDED) { if (macro && macro->displayMode() == MathMacro::DISPLAY_UNFOLDED) {
// resume macro_mode // resume macro_mode
@ -1580,7 +1579,6 @@ bool InsetMathNest::interpretChar(Cursor & cur, char_type const c)
cur.insert(MathAtom(new InsetMathUnknown("\\" + s + c, safe, false))); cur.insert(MathAtom(new InsetMathUnknown("\\" + s + c, safe, false)));
return true; return true;
} }
}
selClearOrDel(cur); selClearOrDel(cur);