]> git.lyx.org Git - lyx.git/commitdiff
remove warning message
authorAndré Pönitz <poenitz@gmx.net>
Fri, 13 Aug 2004 21:21:10 +0000 (21:21 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 13 Aug 2004 21:21:10 +0000 (21:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8913 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_factory.C
src/mathed/math_hullinset.C
src/mathed/math_nestinset.C

index 4cb8ebfbc6007ab016fe098713466d54697b98cb..c0af61b695e98356496e46d5f829d0fd0725f667 100644 (file)
@@ -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));
 }
 
index 8741af399feff2d4497e54c3578c28e68c862f9e..7b2e928065727891fc09be1de3f19e061e27fb2a 100644 (file)
@@ -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;
index 0f946e57246965526fe7197ada37b5181effeaf0..591678b7626305f9f80879444db2b9fdb2e3dd70 100644 (file)
@@ -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;