]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/MathsSymbols.C
text2 chane, XFormsView
[lyx.git] / src / frontends / xforms / MathsSymbols.C
index e14432f868a7c15aaf0f45695886780edbc6495b..164d1fccb38a37af1d5a9dde111a7a29f567c96a 100644 (file)
@@ -26,6 +26,11 @@ using std::max;
 using std::endl;
 using std::ostream;
 
+#ifndef CXX_GLOBAL_CSTD
+using std::strstr;
+#endif
+
+
 /* Latex code for those bitmaps */
 
 #include "greek.xbm"
@@ -282,8 +287,10 @@ static char const ** pixmapFromBitmapData(char const * s, int wx, int hx)
  
 char const ** get_pixmap_from_symbol(char const * arg, int wx, int hx)
 {
+       lyx::Assert(arg);
+       
        char const ** data = 0;
-       latexkeys const * l = in_word_set (arg, strlen(arg));
+       latexkeys const * l = in_word_set(arg);
        if (!l)
                return 0;