mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
fig bug introduced this morning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4917 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6c069a3ada
commit
9470c8daad
@ -380,15 +380,11 @@ void MathCursor::niceInsert(MathAtom const & t)
|
||||
macroModeClose();
|
||||
MathGridInset safe = grabAndEraseSelection();
|
||||
plainInsert(t);
|
||||
int x, y;
|
||||
getPos(x, y);
|
||||
// enter the new inset and move the contents of the selection if possible
|
||||
if (t->isActive()) {
|
||||
posLeft();
|
||||
pushLeft(nextAtom());
|
||||
paste(safe);
|
||||
// lets pretend we've not moved too far away...
|
||||
array().setXY(x, y);
|
||||
}
|
||||
}
|
||||
|
||||
@ -701,12 +697,10 @@ void MathCursor::drawSelection(MathPainterInfo & pi) const
|
||||
}
|
||||
|
||||
|
||||
void MathCursor::handleNest(MathAtom const & at)
|
||||
void MathCursor::handleNest(MathAtom const & a)
|
||||
{
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning temporarily disabled
|
||||
//at->cell(0) = grabAndEraseSelection().glue();
|
||||
#endif
|
||||
MathAtom at = a;
|
||||
at.nucleus()->cell(0) = grabAndEraseSelection().glue();
|
||||
insert(at);
|
||||
pushRight(prevAtom());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user