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

github at latex-project.org github at latex-project.org
Thu Oct 19 12:14:32 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : tl-build
Link       : https://github.com/latex3/latex3/commit/5b82b8ba96a73fde3249112618b4d401221c9a70

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

commit 5b82b8ba96a73fde3249112618b4d401221c9a70
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.


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

5b82b8ba96a73fde3249112618b4d401221c9a70
 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.