fix a couple of crashers

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5151 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-08-29 05:40:51 +00:00
parent 8d9743fe7e
commit a7e6327ee1
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-08-29 John Levon <levon@movementarian.org>
* MathsSymbols.C: fix two crash bugs
2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
* forms/form_graphics.fd:

View File

@ -185,7 +185,7 @@ char const * latex_ams_arrows[] = {
"Rsh", "downdownarrows", "upharpoonright",
"downharpoonright", "rightsquigarrow",
"nleftarrow", "nrightarrow", "nLeftarrow",
"nRightarrow", "nleftrightarrow", "nLeftrightarrow"
"nRightarrow", "nleftrightarrow", "nLeftrightarrow", ""
};
int const nr_latex_ams_arrows = sizeof(latex_ams_arrows) / sizeof(char const *);
@ -201,7 +201,7 @@ char const * latex_ams_rel[] = {
"precsim", "precapprox", "vartriangleleft", "trianglerighteq", "Vdash", "shortmid",
"trianglelefteq", "vDash", "Vvdash", "shortparallel", "between", "pitchfork",
"smallsmile", "smallfrown", "bumpeq", "varpropto", "blacktriangleleft", "therefore",
"Bumpeq", "geqq", "geqslant", "backepsilon", "blacktriangleright", "because"
"Bumpeq", "geqq", "geqslant", "backepsilon", "blacktriangleright", "because", ""
};
int const nr_latex_ams_rel = sizeof(latex_ams_rel) / sizeof(char const *);
@ -376,11 +376,13 @@ static char const ** pixmapFromBitmapData(char const * s, int wx, int hx)
id -= 29;
}
break;
case 6:
case 7:
case 8:
case 9:
case 10:
// to be added -- MV
// FIXME: to be added -- MV
return 0;
break;
}
int ww = w / dw;
@ -413,6 +415,8 @@ char const ** get_pixmap_from_symbol(char const * arg, int wx, int hx)
{
lyx::Assert(arg);
lyxerr << arg << endl;
char const ** data = 0;
latexkeys const * l = in_word_set(arg);
if (!l)