summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3drivers.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3drivers.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3drivers.dtx19
1 files changed, 9 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3drivers.dtx b/Master/texmf-dist/source/latex/l3kernel/l3drivers.dtx
index 4fded9b0079..46426e18186 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3drivers.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3drivers.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-%% File: l3drivers.dtx Copyright(C) 2011-2012 The LaTeX3 Project
+%% File: l3drivers.dtx Copyright(C) 2011-2013 The LaTeX3 Project
%%
%% It may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -36,7 +36,7 @@
%
%<*driver|package>
\RequirePackage{l3bootstrap}
-\GetIdInfo$Id: l3drivers.dtx 4505 2013-06-28 22:06:04Z joseph $
+\GetIdInfo$Id: l3drivers.dtx 4602 2013-11-18 23:19:01Z bruno $
{L3 Experimental drivers}
%</driver|package>
%<*driver>
@@ -403,31 +403,30 @@
% case where the sine and cosine are used, we store the rounded values to
% avoid rounding twice. There are also a couple of comparisons to ensure
% that |-0| is not written to the output, as this avoids any issues with
-% problematic display programs.
+% problematic display programs. Note that numbers are compared to~$0$
+% after rounding.
% \begin{macrocode}
\cs_new_protected_nopar:Npn \@@_box_rotate_begin:
{
\@@_graphic_state_save:
%<*dvips>
+ \fp_set:Nn \l__box_angle_fp { round ( \l__box_angle_fp , 5 ) }
\@@_ps_literal:n
{
currentpoint~
currentpoint~translate~
\fp_compare:nNnTF \l__box_angle_fp = \c_zero_fp
{ 0 }
- { \fp_eval:n { round ( - \l__box_angle_fp , 5 ) } }
+ { \fp_eval:n { - \l__box_angle_fp } }
\c_space_tl rotate~
neg~exch~neg~exch~translate
}
%</dvips>
%<*!dvips>
\box_set_wd:Nn \l__box_internal_box \c_zero_dim
- \fp_set:Nn \l__box_cos_fp
- {
- \fp_compare:nNnTF \l__box_cos_fp = \c_zero_fp
- { 0 }
- { round ( \l__box_cos_fp , 5 ) }
- }
+ \fp_set:Nn \l__box_cos_fp { round ( \l__box_cos_fp , 5 ) }
+ \fp_compare:nNnT \l__box_cos_fp = \c_zero_fp
+ { \fp_zero:N \l__box_cos_fp }
\fp_set:Nn \l__box_sin_fp { round ( \l__box_sin_fp , 5 ) }
\@@_pdf_matrix:n
{