mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
Index: source/texk/web2c/luatexdir/tex/mlist.w
|
|
===================================================================
|
|
--- source/texk/web2c/luatexdir/tex/mlist.w (revision 4448)
|
|
+++ source/texk/web2c/luatexdir/tex/mlist.w (revision 4449)
|
|
@@ -1798,7 +1798,17 @@
|
|
theta = fraction_rule(cur_style);
|
|
y = var_delimiter(left_delimiter(q), cur_size,
|
|
height(x) + depth(x) + clr + theta, NULL, cur_style);
|
|
- theta = height(y);
|
|
+ /* If |y| is a composite then set |theta| to the height of its top
|
|
+ character, else set it to the height of |y|. */
|
|
+ if (list_ptr(y) != null
|
|
+ && type(list_ptr(y)) == hlist_node
|
|
+ && list_ptr(list_ptr(y)) != null
|
|
+ && type(list_ptr(list_ptr(y))) == glyph_node) { /* and it should be */
|
|
+ theta = char_height(font(list_ptr(list_ptr(y))),
|
|
+ character(list_ptr(list_ptr(y))));
|
|
+ } else {
|
|
+ theta = height(y);
|
|
+ }
|
|
} else {
|
|
y = var_delimiter(left_delimiter(q), cur_size,
|
|
height(x) + depth(x) + clr + theta, NULL, cur_style);
|