mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2871 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bb3a2ccaa5
commit
748af630f5
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* File: formulabase.C
|
* File: formulabase.C
|
||||||
* Purpose: Implementation of common parts of the LyX math insets
|
* Purpose: Implementation of common parts of the LyX math insets
|
||||||
* Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
|
* Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
|
||||||
@ -508,11 +508,6 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
case LFUN_MATH_SPACE:
|
case LFUN_MATH_SPACE:
|
||||||
{
|
{
|
||||||
bv->lockedInsetStoreUndo(Undo::EDIT);
|
bv->lockedInsetStoreUndo(Undo::EDIT);
|
||||||
//MathSpaceInset * p = mathcursor->prevSpaceInset();
|
|
||||||
//if (p)
|
|
||||||
// p->incSpace();
|
|
||||||
//else
|
|
||||||
// mathcursor->insert(new MathSpaceInset(1));
|
|
||||||
mathcursor->insert(MathAtom(new MathSpaceInset(1)));
|
mathcursor->insert(MathAtom(new MathSpaceInset(1)));
|
||||||
updateLocal(bv, true);
|
updateLocal(bv, true);
|
||||||
break;
|
break;
|
||||||
|
@ -1340,9 +1340,8 @@ void MathCursor::interpret(char c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (c == ' ') {
|
if (c == ' ') {
|
||||||
MathSpaceInset * p = prevSpaceInset();
|
if (hasPrevAtom() && prevAtom()->asSpaceInset()) {
|
||||||
if (p) {
|
prevAtom()->asSpaceInset()->incSpace();
|
||||||
p->incSpace();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1465,9 +1464,3 @@ MathCursorPos MathCursor::normalAnchor() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MathSpaceInset * MathCursor::prevSpaceInset() const
|
|
||||||
{
|
|
||||||
if (!hasPrevAtom())
|
|
||||||
return 0;
|
|
||||||
return prevAtom()->asSpaceInset();
|
|
||||||
}
|
|
||||||
|
@ -242,23 +242,11 @@ public:
|
|||||||
///
|
///
|
||||||
MathCursorPos const & cursor() const;
|
MathCursorPos const & cursor() const;
|
||||||
|
|
||||||
|
|
||||||
///
|
|
||||||
pos_type last() const;
|
|
||||||
///
|
///
|
||||||
void seldump(char const * str) const;
|
void seldump(char const * str) const;
|
||||||
///
|
///
|
||||||
void dump(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;
|
friend class Selection;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user