[latex3-commits] [l3svn] 05/06: Finding a bounding box should be 'required'
noreply at latex-project.org
noreply at latex-project.org
Sun May 14 16:58:28 CEST 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit 4d7ad8b8ff360534bd360c4236c84d8825102ed1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sun May 14 09:31:09 2017 +0100
Finding a bounding box should be 'required'
At least for the present go with the idea that the format should be
correct and we do get a result.
Also assume that the 'higher up' code will cover initialisation.
---
l3trial/l3image/l3image.dtx | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
diff --git a/l3trial/l3image/l3image.dtx b/l3trial/l3image/l3image.dtx
index f0ca59c..0ee0936 100644
--- a/l3trial/l3image/l3image.dtx
+++ b/l3trial/l3image/l3image.dtx
@@ -178,7 +178,6 @@
% \end{macrocode}
% \end{variable}
%
-% \begin{variable}[int]{\l__image_bb_found_dim}
% \begin{variable}[int]
% {
% \l__image_llx_dim , \l__image_lly_dim ,
@@ -186,14 +185,12 @@
% }
% Storage for the return of results.
% \begin{macrocode}
-\bool_new:N \l__image_bb_found_bool
\dim_new:N \l__image_llx_dim
\dim_new:N \l__image_lly_dim
\dim_new:N \l__image_urx_dim
\dim_new:N \l__image_ury_dim
% \end{macrocode}
% \end{variable}
-% \end{variable}
%
% \begin{macro}[int]{\__image_extract_bb:n, \__image_read_bb:n}
% \begin{macro}[aux]{\@@_read_bb_auxi:nnn, \@@_read_bb_auxii:nnn}
@@ -235,7 +232,6 @@
{
\dim_if_exist:cTF { c_@@_ #1 _llx_dim }
{
- \bool_set_true:N \l__image_bb_found_bool
\dim_set_eq:Nc \l__image_llx_dim { c_@@_ #1 _llx_dim }
\dim_set_eq:Nc \l__image_lly_dim { c_@@_ #1 _lly_dim }
\dim_set_eq:Nc \l__image_urx_dim { c_@@_ #1 _urx_dim }
@@ -246,11 +242,6 @@
\cs_new_protected:Npx \@@_read_bb_auxii:nnn #1#2#3
{
#2
- \dim_zero:N \l__image_llx_dim
- \dim_zero:N \l__image_lly_dim
- \dim_set:Nn \l__image_urx_dim { 72bp }
- \dim_set:Nn \l__image_ury_dim { 72bp }
- \bool_set_false:N \l__image_bb_found_bool
\exp_not:N \ior_if_eof:NTF \exp_not:N \l_@@_tmp_ior
{
\__msg_kernel_error:nnn { kernel } {#3} {#1}
@@ -263,13 +254,10 @@
}
}
\ior_close:N \exp_not:N \l_@@_tmp_ior
- \bool_if:NT \l__image_bb_found_bool
- {
- \dim_const:cn { c_@@_ #1 _llx_dim } { \l__image_llx_dim }
- \dim_const:cn { c_@@_ #1 _lly_dim } { \l__image_lly_dim }
- \dim_const:cn { c_@@_ #1 _urx_dim } { \l__image_urx_dim }
- \dim_const:cn { c_@@_ #1 _ury_dim } { \l__image_ury_dim }
- }
+ \dim_const:cn { c_@@_ #1 _llx_dim } { \l__image_llx_dim }
+ \dim_const:cn { c_@@_ #1 _lly_dim } { \l__image_lly_dim }
+ \dim_const:cn { c_@@_ #1 _urx_dim } { \l__image_urx_dim }
+ \dim_const:cn { c_@@_ #1 _ury_dim } { \l__image_ury_dim }
}
\use:x
{
@@ -317,7 +305,6 @@
\dim_set:Nn \l__image_lly_dim { #2 bp }
\dim_set:Nn \l__image_urx_dim { #3 bp }
\dim_set:Nn \l__image_ury_dim { #4 bp }
- \bool_set_true:N \l__image_bb_found_bool
\ior_map_break:
}
% \end{macrocode}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list