From 4473009fc3aee787af896aef8aca255a121d62ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 13 Aug 2004 21:21:10 +0000 Subject: [PATCH] remove warning message git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8913 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_factory.C | 2 +- src/mathed/math_hullinset.C | 2 +- src/mathed/math_nestinset.C | 60 ++++++++++++++++++------------------- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/mathed/math_factory.C b/src/mathed/math_factory.C index 4cb8ebfbc6..c0af61b695 100644 --- a/src/mathed/math_factory.C +++ b/src/mathed/math_factory.C @@ -334,7 +334,7 @@ MathAtom createMathInset(string const & s) // return MathAtom(new MathMacro(s, // MacroTable::localMacros().get(s).numargs())); - lyxerr << "creating unknown inset '" << s << "'" << endl; + //lyxerr << "creating unknown inset '" << s << "'" << endl; return MathAtom(new MathUnknownInset(s)); } diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index 8741af399f..7b2e928065 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -744,7 +744,7 @@ void MathHullInset::mutate(string const & newtype) else if (type_ == "gather") { if (newtype == "multline") { - setType("multline"); + setType(newtype); } else { lyxerr << "mutation from '" << type_ << "' to '" << newtype << "' not implemented" << endl; diff --git a/src/mathed/math_nestinset.C b/src/mathed/math_nestinset.C index 0f946e5724..591678b762 100644 --- a/src/mathed/math_nestinset.C +++ b/src/mathed/math_nestinset.C @@ -901,36 +901,6 @@ InsetBase * MathNestInset::editXY(LCursor & cur, int x, int y) const } -void MathNestInset::lfunMouseRelease(LCursor & cur, FuncRequest & cmd) -{ - //lyxerr << "lfunMouseRelease: buttons: " << cmd.button() << endl; - - if (cmd.button() == mouse_button::button1) { - // try to dispatch to enclosed insets first - //cur.bv().stuffClipboard(cur.grabSelection()); - return; - } - - if (cmd.button() == mouse_button::button2) { - MathArray ar; - asArray(cur.bv().getClipboard(), ar); - cur.clearSelection(); - cur.setScreenPos(cmd.x, cmd.y); - cur.insert(ar); - cur.bv().update(); - return; - } - - if (cmd.button() == mouse_button::button3) { - // try to dispatch to enclosed insets first - cur.bv().owner()->getDialogs().show("mathpanel"); - return; - } - - cur.undispatched(); -} - - void MathNestInset::lfunMousePress(LCursor & cur, FuncRequest & cmd) { lyxerr << "lfunMousePress: buttons: " << cmd.button() << endl; @@ -965,6 +935,36 @@ void MathNestInset::lfunMouseMotion(LCursor & cur, FuncRequest & cmd) } +void MathNestInset::lfunMouseRelease(LCursor & cur, FuncRequest & cmd) +{ + lyxerr << "lfunMouseRelease: buttons: " << cmd.button() << endl; + + if (cmd.button() == mouse_button::button1) { + // try to dispatch to enclosed insets first + //cur.bv().stuffClipboard(cur.grabSelection()); + return; + } + + if (cmd.button() == mouse_button::button2) { + MathArray ar; + asArray(cur.bv().getClipboard(), ar); + cur.clearSelection(); + cur.setScreenPos(cmd.x, cmd.y); + cur.insert(ar); + cur.bv().update(); + return; + } + + if (cmd.button() == mouse_button::button3) { + // try to dispatch to enclosed insets first + cur.bv().owner()->getDialogs().show("mathpanel"); + return; + } + + cur.undispatched(); +} + + bool MathNestInset::interpret(LCursor & cur, char c) { lyxerr << "interpret 2: '" << c << "'" << endl; -- 2.39.2