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);
return;
}
mathcursor->getPos(x, y);
- //x -= xo_;
+ x -= xo_;
y -= yo_;
//lyxerr << "getCursorPos: " << x << " " << y << "\n";
}
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";
}
case LFUN_INSERT_LABEL:
case LFUN_MATH_EXTERN:
case LFUN_TABULAR_FEATURE:
+ case LFUN_PASTESELECTION:
bv->lockedInsetStoreUndo(Undo::EDIT);
mathcursor->dispatch(cmd);
updateLocal(bv, true);
break;
}
-/*
- case LFUN_PASTESELECTION: {
- string const clip = bv->getClipboard();
- if (!clip.empty())
- mathed_parse_normal(par_, clip);
- break;
- }
-*/
-
case LFUN_PASTE:
if (was_macro)
mathcursor->macroModeClose();