summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3kernel/l3candidates.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3kernel/l3candidates.sty')
-rw-r--r--Master/texmf-dist/tex/latex/l3kernel/l3candidates.sty17
1 files changed, 12 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/l3kernel/l3candidates.sty b/Master/texmf-dist/tex/latex/l3kernel/l3candidates.sty
index 6ee3e3a018b..433ff506d60 100644
--- a/Master/texmf-dist/tex/latex/l3kernel/l3candidates.sty
+++ b/Master/texmf-dist/tex/latex/l3kernel/l3candidates.sty
@@ -578,10 +578,14 @@
}
\cs_new_protected:Npn \__coffin_find_corner_maxima_aux:nn #1#2
{
- \dim_set_min:Nn \l__coffin_left_corner_dim {#1}
- \dim_set_max:Nn \l__coffin_right_corner_dim {#1}
- \dim_set_min:Nn \l__coffin_bottom_corner_dim {#2}
- \dim_set_max:Nn \l__coffin_top_corner_dim {#2}
+ \dim_set:Nn \l__coffin_left_corner_dim
+ { \dim_min:nn { \l__coffin_left_corner_dim } {#1} }
+ \dim_set:Nn \l__coffin_right_corner_dim
+ { \dim_max:nn { \l__coffin_right_corner_dim } {#1} }
+ \dim_set:Nn \l__coffin_bottom_corner_dim
+ { \dim_min:nn { \l__coffin_bottom_corner_dim } {#2} }
+ \dim_set:Nn \l__coffin_top_corner_dim
+ { \dim_max:nn { \l__coffin_top_corner_dim } {#2} }
}
\cs_new_protected_nopar:Npn \__coffin_find_bounding_shift:
{
@@ -590,7 +594,10 @@
{ \__coffin_find_bounding_shift_aux:nn ##2 }
}
\cs_new_protected:Npn \__coffin_find_bounding_shift_aux:nn #1#2
- { \dim_set_min:Nn \l__coffin_bounding_shift_dim {#1} }
+ {
+ \dim_set:Nn \l__coffin_bounding_shift_dim
+ { \dim_min:nn { \l__coffin_bounding_shift_dim } {#1} }
+ }
\cs_new_protected:Npn \__coffin_shift_corner:Nnnn #1#2#3#4
{
\prop_put:cnx { l__coffin_corners_ \__int_value:w #1 _ prop } {#2}