]> git.lyx.org Git - lyx.git/commitdiff
more cursor up/down smoothing
authorAndré Pönitz <poenitz@gmx.net>
Thu, 22 Aug 2002 15:04:27 +0000 (15:04 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 22 Aug 2002 15:04:27 +0000 (15:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5074 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C
src/text3.C

index 8358199b53996656deb8455a6688754721c204fd..f31a291568198f30eb4f778f52e7eae6d06f505d 100644 (file)
@@ -216,7 +216,7 @@ void InsetFormulaBase::getCursorPos(BufferView *, int & x, int & y) const
                return;
        }
        mathcursor->getPos(x, y);
-       //x -= xo_;
+       x -= xo_;
        y -= yo_;
        //lyxerr << "getCursorPos: " << x << " " << y << "\n";
 }
@@ -240,7 +240,7 @@ void InsetFormulaBase::showInsetCursor(BufferView * bv, bool)
        int x, y, asc, des;
        getCursorPos(bv, x, y);
        math_font_max_dim(font_, asc, des);
-       bv->showLockedInsetCursor(x, y, asc, des);
+       bv->showLockedInsetCursor(x + xo_, y, asc, des);
        setCursorVisible(true);
        //lyxerr << "showInsetCursor: " << x << " " << y << "\n";
 }
index 1da785ddab2fd0c91ed8021966d1029e8db0df7c..6671c3c5aaaa7ce9845f790b295c8800f932c78a 100644 (file)
@@ -171,6 +171,9 @@ void specialChar(LyXText * lt, BufferView * bv, InsetSpecialChar::Kind kind)
 
 Inset::RESULT LyXText::dispatch(FuncRequest const & cmd)
 {
+       lyxerr[Debug::ACTION] << "LyXFunc::dispatch: action[" << cmd.action
+                             <<"] arg[" << cmd.argument << "]" << endl;
+
        BufferView * bv = cmd.view();
 
        switch (cmd.action) {