2002-04-22 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+ * lyxfunc.C (getStatus): LFUN_PROTECTED_SPACE is allowed in maths
+
* paragraph_pimpl.C (simpleTeXSpecialChars): remove bogus
ensuremath around textordmasculine, textordfeminine and
textdegree.
case LFUN_MENU_SEPARATOR:
case LFUN_LDOTS:
case LFUN_END_OF_SENTENCE:
- case LFUN_PROTECTEDSPACE:
code = Inset::SPECIALCHAR_CODE;
break;
+ case LFUN_PROTECTEDSPACE:
+ // slight hack: we know this is allowed in math mode
+ if (!mathcursor)
+ code = Inset::SPECIALCHAR_CODE;
+ break;
default:
break;
}
+2002-04-22 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * formulabase.C (localDispatch): merge the cases for
+ LFUN_PROTECTEDSPACE and LFUN_MATH_SPACE, since they were identical.
+
2002-04-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* formulabase.C (localDispatch): handle arguments of
}
break;
- case LFUN_MATH_SPACE:
- {
- bv->lockedInsetStoreUndo(Undo::EDIT);
- mathcursor->insert(MathAtom(new MathSpaceInset(1)));
- updateLocal(bv, true);
- break;
- }
-
case LFUN_SUPERSCRIPT:
case LFUN_SUBSCRIPT:
{
}
case LFUN_PROTECTEDSPACE:
- //lyxerr << " called LFUN_PROTECTEDSPACE\n";
+ case LFUN_MATH_SPACE:
bv->lockedInsetStoreUndo(Undo::EDIT);
mathcursor->insert(MathAtom(new MathSpaceInset(1)));
updateLocal(bv, true);