]> git.lyx.org Git - features.git/commitdiff
make enering a formula from above/below a bit smoother
authorAndré Pönitz <poenitz@gmx.net>
Thu, 22 Aug 2002 13:17:29 +0000 (13:17 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 22 Aug 2002 13:17:29 +0000 (13:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5073 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C

index 1a767ee4a8996878293e2f22441b111289f76d44..8358199b53996656deb8455a6688754721c204fd 100644 (file)
@@ -173,9 +173,7 @@ void InsetFormulaBase::edit(BufferView * bv, int x, int y, mouse_button::state)
        releaseMathCursor(bv);
        mathcursor = new MathCursor(this, true);
        metrics(bv);
-       mathcursor->setPos(x, y);
-       //lyxerr << "setting pos to " << x << "," << y << "\n";
-
+       mathcursor->setPos(x + xo_, y + yo_);
        // if that is removed, we won't get the magenta box when entering an
        // inset for the first time
        bv->updateInset(this, false);