]> git.lyx.org Git - lyx.git/commitdiff
uh... forgot something
authorAndré Pönitz <poenitz@gmx.net>
Thu, 30 May 2002 09:45:52 +0000 (09:45 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 30 May 2002 09:45:52 +0000 (09:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4294 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/MathsSymbols.C

index 53a999e6ccf17dc38fb56575070b8655a59db126..a5cd5aca95247967eac92c37a116cb1fe2a9485e 100644 (file)
@@ -417,28 +417,22 @@ char const ** get_pixmap_from_symbol(char const * arg, int wx, int hx)
        if (!l)
                return 0;
 
-       switch (l->token) {
-       case LM_TK_FRAC:
+       if (l->inset == "frac")
                data = mathed_get_pixmap_from_icon(MM_FRAC);
-               break;
-       case LM_TK_SQRT:
+       else if (l->inset == "sqrt")
                data = mathed_get_pixmap_from_icon(MM_SQRT);
-               break;
-       case LM_TK_SYM:
-       case LM_TK_CMR:
-       case LM_TK_CMSY:
-       case LM_TK_CMEX:
-       case LM_TK_CMM:
-       case LM_TK_MSA:
-       case LM_TK_MSB:
-               // I have to use directly the bitmap data since the
-               // bitmap tables are not yet created when this
-               // function is called.
+       else if (
+               l->inset == "lyxsymb" ||
+               l->inset == "cmr" ||
+               l->inset == "cmsy" ||
+               l->inset == "cmex" ||
+               l->inset == "cmm" ||
+               l->inset == "msa" ||
+               l->inset == "msb" )
+                       // I have to use directly the bitmap data since the
+                       // bitmap tables are not yet created when this
+                       // function is called.
                data = pixmapFromBitmapData(arg, wx, hx);
-               break;
-       default:
-               break;
-       }
 
        return data;
 }