[latex3-commits] [latex3/latex3] tl-build: End/begin tl-build in l3draw softpath (7d55ef077)

github at latex-project.org github at latex-project.org
Fri Oct 27 11:23:54 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : tl-build
Link       : https://github.com/latex3/latex3/commit/7d55ef07741369ee6a65bf32e94a1ca666c8f01a

>---------------------------------------------------------------

commit 7d55ef07741369ee6a65bf32e94a1ca666c8f01a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Oct 19 11:14:32 2023 +0100

    End/begin tl-build in l3draw softpath
    
    Looking back, this is likely better here anyway.


>---------------------------------------------------------------

7d55ef07741369ee6a65bf32e94a1ca666c8f01a
 l3experimental/l3draw/l3draw-softpath.dtx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/l3experimental/l3draw/l3draw-softpath.dtx b/l3experimental/l3draw/l3draw-softpath.dtx
index 2b1e03873..f0e5c0dbc 100644
--- a/l3experimental/l3draw/l3draw-softpath.dtx
+++ b/l3experimental/l3draw/l3draw-softpath.dtx
@@ -125,7 +125,10 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_softpath_save:
   {
-    \tl_build_get:NN \g_@@_softpath_main_tl \l_@@_softpath_main_tl
+    \tl_build_gend:N \g_@@_softpath_main_tl
+    \tl_set_eq:NN
+      \l_@@_softpath_main_tl
+      \g_@@_softpath_main_tl
     \bool_set_eq:NN
       \l_@@_softpath_corners_bool
       \g_@@_softpath_corners_bool
@@ -134,10 +137,10 @@
 \cs_new_protected:Npn \@@_softpath_restore:
   {
     \@@_softpath_clear:
+    \@@_softpath_add:o \l_@@_softpath_main_tl
     \bool_gset_eq:NN
       \g_@@_softpath_corners_bool
       \l_@@_softpath_corners_bool
-    \@@_softpath_add:o \l_@@_softpath_main_tl
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.