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:
André Pönitz 2002-08-09 08:47:31 +00:00
parent 6c069a3ada
commit 9470c8daad

View File

@ -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());
}