mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
aebfbbb532
commit
dd8e79e7fc
@ -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}}%
|
||||||
|
Loading…
Reference in New Issue
Block a user