diff options
author | jfbu <jfbu@free.fr> | 2021-01-31 09:53:09 +0100 |
---|---|---|
committer | jfbu <jfbu@free.fr> | 2021-01-31 09:53:09 +0100 |
commit | dd8e79e7fcb8e2f0ef1e47dd1b4f16deb1890eaa (patch) | |
tree | 269d3164fb1db00106f0ab0d5de13c66f2235a5c | |
parent | aebfbbb532d2f887d3a372454be639f864c1690a (diff) | |
download | sphinx-git-dd8e79e7fcb8e2f0ef1e47dd1b4f16deb1890eaa.tar.gz |
Fix #8796: define \spx@image@box as a box not a dimen!
This bug was introduced at 2.0 (commit 669f9c3a) (sorry)
-rw-r--r-- | sphinx/texinputs/sphinx.sty | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 4b637a9ec..08cf14db7 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -737,7 +737,7 @@ \AtBeginDocument{\spx@image@maxheight\textheight} % box scratch register -\newdimen\spx@image@box +\newbox\spx@image@box \newcommand*{\sphinxsafeincludegraphics}[2][]{% % #1 contains possibly width=, height=, but no scale= since 1.8.4 \setbox\spx@image@box\hbox{\includegraphics[#1,draft]{#2}}% |