From 0034d54351819457808cf0c8c3d6811269ad264f Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 4 Jan 2019 21:48:42 +0000
Subject: adjustbox (4jan19)

git-svn-id: svn://tug.org/texlive/trunk@49596 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/adjustbox/tc-pdftex.def   | 26 +++++++++++++---------
 1 file changed, 15 insertions(+), 11 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/adjustbox/tc-pdftex.def')

diff --git a/Master/texmf-dist/tex/latex/adjustbox/tc-pdftex.def b/Master/texmf-dist/tex/latex/adjustbox/tc-pdftex.def
index c69189939da..637f631bfc2 100644
--- a/Master/texmf-dist/tex/latex/adjustbox/tc-pdftex.def
+++ b/Master/texmf-dist/tex/latex/adjustbox/tc-pdftex.def
@@ -17,7 +17,7 @@
 %% tc-dvips.def, tc-pdftex.def, tc-pgf.def and tc-xetex.def.
 %% Further author information are located in the .def files.
 %%
-\ProvidesFile{tc-pdftex.def}[2018/04/08 v2.1 Clipping driver for pdftex]
+\ProvidesFile{tc-pdftex.def}[2019/01/04 v2.2 Clipping driver for pdftex]
 \def\@cliptoboxdim#1{%
     \setbox#1=\hbox{%
         \adjcalc@settobp\WIDTH{\wd#1}%
@@ -39,8 +39,8 @@
     \adjcalc@settobp\WIDTH{\wd#1}%
     \adjcalc@settobp\RADIUSTL{#2}%
     \adjcalc@settobp\RADIUSTR{#3}%
-    \adjcalc@settobp\RADIUSBR{#4}%
-    \adjcalc@settobp\RADIUSBL{#5}%
+    \adjcalc@settobp\RADIUSBR{#5}%
+    \adjcalc@settobp\RADIUSBL{#4}%
     \adjcalc@settobp\RADIUSTLb{\tc@bezfacn#2}%
     \adjcalc@settobp\HEIGHTmRADIUSTL{\ht#1-#2}%
     \adjcalc@settobp\HEIGHTmRADIUSTLb{\ht#1-\tc@bezfacn#2}%
@@ -48,13 +48,13 @@
     \adjcalc@settobp\HEIGHTmRADIUSTRb{\ht#1-\tc@bezfacn#3}%
     \adjcalc@settobp\WIDTHmRADIUSTR{\wd#1-#3}%
     \adjcalc@settobp\WIDTHmRADIUSTRb{\wd#1-\tc@bezfacn#3}%
-    \adjcalc@settobp\RADIUSBRmDEPTH{#4-\dp#1}%
-    \adjcalc@settobp\RADIUSBRmDEPTHb{\tc@bezfacn#4-\dp#1}%
-    \adjcalc@settobp\WIDTHmRADIUSBR{\wd#1-#4}%
-    \adjcalc@settobp\WIDTHmRADIUSBRb{\wd#1-\tc@bezfacn#4}%
-    \adjcalc@settobp\RADIUSBLmDEPTH{#5-\dp#1}%
-    \adjcalc@settobp\RADIUSBLmDEPTHb{\tc@bezfacn#5-\dp#1}%
-    \adjcalc@settobp\RADIUSBLb{\tc@bezfacn#5}%
+    \adjcalc@settobp\RADIUSBRmDEPTH{#5-\dp#1}%
+    \adjcalc@settobp\RADIUSBRmDEPTHb{\tc@bezfacn#5-\dp#1}%
+    \adjcalc@settobp\WIDTHmRADIUSBR{\wd#1-#5}%
+    \adjcalc@settobp\WIDTHmRADIUSBRb{\wd#1-\tc@bezfacn#5}%
+    \adjcalc@settobp\RADIUSBLmDEPTH{#4-\dp#1}%
+    \adjcalc@settobp\RADIUSBLmDEPTHb{\tc@bezfacn#4-\dp#1}%
+    \adjcalc@settobp\RADIUSBLb{\tc@bezfacn#4}%
     \adjcalc@settobp\LINEWIDTH{\fboxrule}%
 }
 \def\@clip@roundedboxpath@pdfcode{%
@@ -81,11 +81,15 @@
         \hskip\wd#1%
     }%
 }
-\def\@rndframearoundbox#1#2#3#4#5{%
+\def\@rndframearoundbox#1#2#3#4#5#6{%
     \setbox#1=\hbox{%
         \adjsetlength\@tempdima{\fboxsep+.5\fboxrule}%
         \@marginbox#1\@tempdima\@tempdima\@tempdima\@tempdima%
         \@clip@bpdimens{#1}{#2}{#3}{#4}{#5}%
+        \edef\@tempa{#6}%
+        \ifx\@empty\@tempa\else
+            \@clipcornersofbox{#1}{#2}{#3}{#4}{#5}%
+        \fi
         %
         \hbox to 0pt{\copy#1\hss}%
         \pdfsave
-- 
cgit v1.2.3

