]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulabase.C
fix indexing first word in a list layout
[lyx.git] / src / mathed / formulabase.C
index 70b06ae8353a63bf42012441dbd45ff0fc99b733..ab62ccb72cd4fbf57868e49ea7108e00695a3214 100644 (file)
@@ -112,9 +112,7 @@ MathArrayInset * matrixpar(int & idx)
 
 InsetFormulaBase::InsetFormulaBase()
 {
-#ifdef WITH_WARNINGS
-#warning This is needed as long the math parser is not re-entrant
-#endif
+       // This is needed as long the math parser is not re-entrant
        MathMacroTable::builtinMacros();
        //lyxerr << "sizeof MathInset: " << sizeof(MathInset) << "\n";
 }
@@ -151,9 +149,9 @@ int InsetFormulaBase::linuxdoc(Buffer const *, ostream & os) const
 }
 
 
-int InsetFormulaBase::docBook(Buffer const *, ostream & os) const
+int InsetFormulaBase::docbook(Buffer const *, ostream & os) const
 {
-       return docBook(os);
+       return docbook(os);
 }
 
 
@@ -700,7 +698,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
                result = FINISHED_RIGHT;
        }
 
-       mathcursor->normalize();
+       //mathcursor->normalize();
 
        if (was_macro != mathcursor->inMacroMode()
                                && action >= 0 && action != LFUN_BACKSPACE) 
@@ -734,7 +732,8 @@ void mathDispatchCreation(BufferView * bv, string const & arg, bool display)
                //      sel = "";
                //else
 
-               string sel = bv->getLyXText()->selectionAsString(bv->buffer());
+               string sel = bv->getLyXText()->selectionAsString(bv->buffer(),
+                                                                false);
 
                InsetFormulaBase * f;
                if (sel.empty()) {