]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_factory.C
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_factory.C
index 98d4e110e8b68be8991e0c164263d53df5ab88c8..c865d52e0aad230100bff7ad86729594a0512693 100644 (file)
@@ -234,9 +234,7 @@ void initMath()
 latexkeys const * in_word_set(string const & str)
 {
        WordList::iterator it = theWordList.find(str);
-       //lyxerr << "looking up '" << str << "' found: "
-       // << (it != theWordList.end()) << endl;
-       return (it != theWordList.end()) ? &(it->second) : 0;
+       return it != theWordList.end() ? &(it->second) : 0;
 }
 
 
@@ -366,3 +364,4 @@ bool createMathInset_fromDialogStr(string const & str, MathArray & ar)
 
        return ar[0].nucleus();
 }
+