small stuff, fix for one of the bugs John mentioned

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5475 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-10-22 17:31:32 +00:00
parent e2778d8628
commit 13434556ce
3 changed files with 7 additions and 5 deletions

View File

@ -321,6 +321,7 @@ Inset::RESULT InsetFormulaBase::lfunMouseRelease(FuncRequest const & cmd)
if (cmd.button() == mouse_button::button1) {
// try to dispatch to enclosed insets first
mathcursor->dispatch(cmd);
cmd.view()->stuffClipboard(mathcursor->grabSelection());
// try to set the cursor
//delete mathcursor;
//mathcursor = new MathCursor(this, x == 0);
@ -797,6 +798,7 @@ Inset::RESULT InsetFormulaBase::localDispatch(FuncRequest const & cmd)
fitInsetCursor(bv);
showInsetCursor(bv);
revealCodes(bv);
cmd.view()->stuffClipboard(mathcursor->grabSelection());
} else {
releaseMathCursor(bv);
bv->unlockInset(this);

View File

@ -415,16 +415,17 @@ void MathCursor::paste(string const & data)
void MathCursor::backspace()
{
autocorrect_ = false;
if (pos() == 0) {
pullArg();
return;
}
if (selection_) {
selDel();
return;
}
if (pos() == 0) {
pullArg();
return;
}
if (inMacroMode()) {
MathUnknownInset * p = activeMacro();
if (p->name().size() > 1) {

View File

@ -29,7 +29,6 @@ class InsetFormulaBase;
class BufferView;
class MathPainterInfo;
class MathUnknownInset;
class Selection;
/**