[latex3-commits] [git/LaTeX3-latex3-latex3] main: Reset color stack for fill/stroke with (x)dvipdfmx (35ed9609f)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Apr 19 18:30:06 CEST 2022


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

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

commit 35ed9609fb92a1d6643191094d8433fefb842ef4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Apr 19 17:30:06 2022 +0100

    Reset color stack for fill/stroke with (x)dvipdfmx
    
    Which highlights a need to tidy some things: next commit!


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

35ed9609fb92a1d6643191094d8433fefb842ef4
 l3backend/l3backend-color.dtx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index e432a00a8..7de59def3 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -1064,11 +1064,13 @@
   {
     \__kernel_backend_literal:x
       { pdf : bc ~ fill ~ \pdf_object_ref:n {#1} ~ [ #2 ] }
+    \group_insert_after:N \@@_backend_reset:
   }
 \cs_new_protected:Npn \@@_backend_stroke_separation:nn #1#2
   {
     \__kernel_backend_literal:x
       { pdf : bc ~ stroke ~ \pdf_object_ref:n {#1} ~ [ #2 ] }
+    \group_insert_after:N \@@_backend_reset:
   }
 \cs_new_eq:NN \@@_backend_fill_devicen:nn \@@_backend_fill_separation:nn
 \cs_new_eq:NN \@@_backend_stroke_devicen:nn \@@_backend_stroke_separation:nn





More information about the latex3-commits mailing list.