From 9470c8daadc1126db19f03842b191cb7da5e0b2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 9 Aug 2002 08:47:31 +0000 Subject: [PATCH] fig bug introduced this morning git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4917 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index a6d28adcb9..e08b1d4d3e 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -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()); } -- 2.39.5