From: André Pönitz Date: Thu, 22 Aug 2002 15:04:27 +0000 (+0000) Subject: more cursor up/down smoothing X-Git-Tag: 1.6.10~18493 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=42d9dbd0e5b502846a26556c83cb7366d6ac53e9;p=lyx.git more cursor up/down smoothing git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5074 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 8358199b53..f31a291568 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -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"; } diff --git a/src/text3.C b/src/text3.C index 1da785ddab..6671c3c5aa 100644 --- a/src/text3.C +++ b/src/text3.C @@ -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) {