cosmetics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2871 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-10-12 13:29:46 +00:00
parent bb3a2ccaa5
commit 748af630f5
3 changed files with 3 additions and 27 deletions

View File

@ -1,4 +1,4 @@
/*
/*
* File: formulabase.C
* Purpose: Implementation of common parts of the LyX math insets
* Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
@ -508,11 +508,6 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
case LFUN_MATH_SPACE:
{
bv->lockedInsetStoreUndo(Undo::EDIT);
//MathSpaceInset * p = mathcursor->prevSpaceInset();
//if (p)
// p->incSpace();
//else
// mathcursor->insert(new MathSpaceInset(1));
mathcursor->insert(MathAtom(new MathSpaceInset(1)));
updateLocal(bv, true);
break;

View File

@ -1340,9 +1340,8 @@ void MathCursor::interpret(char c)
}
if (c == ' ') {
MathSpaceInset * p = prevSpaceInset();
if (p) {
p->incSpace();
if (hasPrevAtom() && prevAtom()->asSpaceInset()) {
prevAtom()->asSpaceInset()->incSpace();
return;
}
@ -1465,9 +1464,3 @@ MathCursorPos MathCursor::normalAnchor() const
}
MathSpaceInset * MathCursor::prevSpaceInset() const
{
if (!hasPrevAtom())
return 0;
return prevAtom()->asSpaceInset();
}

View File

@ -242,23 +242,11 @@ public:
///
MathCursorPos const & cursor() const;
///
pos_type last() const;
///
void seldump(char const * str) const;
///
void dump(char const * str) const;
///
void merge(MathArray const & arr);
///
MathScriptInset * prevScriptInset() const;
///
MathSpaceInset * prevSpaceInset() const;
/// glue adjacent atoms if possible
bool glueAdjacentAtoms();
///
friend class Selection;