From: André Pönitz Date: Thu, 30 May 2002 09:45:52 +0000 (+0000) Subject: uh... forgot something X-Git-Tag: 1.6.10~19161 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c0a9275323e5b2f1f5fd2706c21d632eebce6a0a;p=lyx.git uh... forgot something git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4294 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/xforms/MathsSymbols.C b/src/frontends/xforms/MathsSymbols.C index 53a999e6cc..a5cd5aca95 100644 --- a/src/frontends/xforms/MathsSymbols.C +++ b/src/frontends/xforms/MathsSymbols.C @@ -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; }