Fix #8796: define \spx@image@box as a box not a dimen!

This bug was introduced at 2.0 (commit 669f9c3a) (sorry)
This commit is contained in:
jfbu 2021-01-31 09:53:09 +01:00
parent aebfbbb532
commit dd8e79e7fc

View File

@ -737,7 +737,7 @@
\AtBeginDocument{\spx@image@maxheight\textheight} \AtBeginDocument{\spx@image@maxheight\textheight}
% box scratch register % box scratch register
\newdimen\spx@image@box \newbox\spx@image@box
\newcommand*{\sphinxsafeincludegraphics}[2][]{% \newcommand*{\sphinxsafeincludegraphics}[2][]{%
% #1 contains possibly width=, height=, but no scale= since 1.8.4 % #1 contains possibly width=, height=, but no scale= since 1.8.4
\setbox\spx@image@box\hbox{\includegraphics[#1,draft]{#2}}% \setbox\spx@image@box\hbox{\includegraphics[#1,draft]{#2}}%