This is a new feature (again) but does not break anything.
Ok to commit?
Andre'
--
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
Index: formulabase.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/formulabase.C,v
retrieving revision 1.214
diff -u -p -r1.214 formulabase.C
--- formulabase.C 11 Oct 2002 09:52:50 -0000 1.214
+++ formulabase.C 11 Oct 2002 15:41:50 -0000
@@ -308,6 +308,14 @@ Inset::RESULT InsetFormulaBase::lfunMous
return DISPATCHED;
}
+ if (cmd.button() == mouse_button::button2) {
+ mathcursor->selClear();
+ mathcursor->setPos(cmd.x + xo_, cmd.y + yo_);
+ mathcursor->insert(asArray(bv->getClipboard()));
+ bv->updateInset(this, true);
+ return DISPATCHED;
+ }
+
if (cmd.button() == mouse_button::button1) {
// try to dispatch to enclosed insets first
mathcursor->dispatch(cmd);
@@ -318,6 +326,7 @@ Inset::RESULT InsetFormulaBase::lfunMous
//mathcursor->setPos(x + xo_, y + yo_);
return DISPATCHED;
}
+
return UNDISPATCHED;
}
@@ -339,11 +348,13 @@ Inset::RESULT InsetFormulaBase::lfunMous
mathcursor->dispatch(cmd);
return DISPATCHED;
}
+
if (cmd.button() == mouse_button::button3) {
mathcursor->dispatch(cmd);
//delete mathcursor;
return DISPATCHED;
}
+
bv->updateInset(this, false);
return DISPATCHED;
}