Skip to content

Commit

Permalink
LaTeX: unneeded 4 code lines from sphinx-doc#11254 trimmed
Browse files Browse the repository at this point in the history
At some point after having inserted these extras I had ensured that rx
and ry where either both zero or both positive, making them unneeded.
  • Loading branch information
jfbu committed Mar 19, 2023
1 parent 8289444 commit baba5d3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sphinx/texinputs/sphinxpackageboxes.sty
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,11 @@
\@ifpackageloaded{pict2e}
{% pict2e is available and loaded
\def\spx@boxes@fcolorbox@setup@fcolorbox{%
\if1% use rounded boxes only if needed
\if1% use rounded boxes only if needed (rx>0 iff ry>0)
\ifdim\spx@boxes@radius@topleft@x >\z@0\fi
\ifdim\spx@boxes@radius@topright@x >\z@0\fi
\ifdim\spx@boxes@radius@bottomright@x>\z@0\fi
\ifdim\spx@boxes@radius@bottomleft@x >\z@0\fi
\ifdim\spx@boxes@radius@topleft@y >\z@0\fi
\ifdim\spx@boxes@radius@topright@y >\z@0\fi
\ifdim\spx@boxes@radius@bottomright@y>\z@0\fi
\ifdim\spx@boxes@radius@bottomleft@y >\z@0\fi
1\def\spx@boxes@fcolorbox{\spx@boxes@fcolorbox@rectangle}%
\else
\def\spx@boxes@fcolorbox{\spx@boxes@fcolorbox@rounded}%
Expand Down

0 comments on commit baba5d3

Please sign in to comment.