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

github at latex-project.org github at latex-project.org
Fri Oct 27 12:08:06 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/ac81913033a2568a49c3adc109080c5eed2ee809

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

commit ac81913033a2568a49c3adc109080c5eed2ee809
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.


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

ac81913033a2568a49c3adc109080c5eed2ee809
 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.