Fix processing error when rowalign has a bad value. Fixes problem reported by Fred in issue #304.

This commit is contained in:
Davide P. Cervone 2012-09-04 07:28:33 -04:00
parent 77c65fb333
commit 7aedaa973f
11 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -258,7 +258,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
dy = ({top: H[i] - A[i][j].bbox.h,
bottom: A[i][j].bbox.d - D[i],
center: ((H[i]-D[i]) - (A[i][j].bbox.h-A[i][j].bbox.d))/2,
baseline: 0, axis: 0})[align]; // FIXME: handle axis better?
baseline: 0, axis: 0})[align] || 0; // FIXME: handle axis better?
align = (cell.columnalign||RCALIGN[i][j]||CALIGN[j])
HTMLCSS.alignBox(A[i][j],align,y+dy);
}

View File

@ -243,7 +243,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
dy = ({top: H[i] - A[i][j].h,
bottom: A[i][j].d - D[i],
center: ((H[i]-D[i]) - (A[i][j].h-A[i][j].d))/2,
baseline: 0, axis: 0})[align]; // FIXME: handle axis better?
baseline: 0, axis: 0})[align] || 0; // FIXME: handle axis better?
align = (cell.columnalign||RCALIGN[i][j]||CALIGN[j])
C[j].Align(A[i][j],align,0,y+dy);
}