From acab24042d34dd439e1d074820d1da2fa1d591cd Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 4 Apr 2019 20:55:44 +0000
Subject: pgf (4apr19)

git-svn-id: svn://tug.org/texlive/trunk@50758 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tikz/libraries/tikzlibraryintersections.code.tex        | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

(limited to 'Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryintersections.code.tex')

diff --git a/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryintersections.code.tex b/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryintersections.code.tex
index f3e4f94144b..5b0e83d5ee1 100644
--- a/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryintersections.code.tex
+++ b/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryintersections.code.tex
@@ -53,23 +53,16 @@
   \expandafter\pgfutil@g@addto@macro\expandafter\tikz@intersect@namedpaths\expandafter{\tikz@marshal}%
 }%
 
-
+% at the end of evey \path command ...
 \let\tikz@finish@orig=\tikz@finish
 \def\tikz@finish{%
   \tikz@finish@orig%
   \tikz@intersect@finish%
 }%
 
+% ... make the named path variables available
 \def\tikz@intersect@finish{%
-  \ifx\tikz@intersect@namedpaths\pgfutil@empty%
-  \else%
-    \tikz@intersect@namedpaths%
-    % FIXME : it is reasonable to reset this globally as it is global
-    % in its nature. But the reset instruction should be moved to
-    % \endscope or something related. Resetting it here breaks the
-    % manual
-    \let\tikz@intersect@namedpaths=\pgfutil@empty%
-  \fi%
+  \tikz@intersect@namedpaths%
 }%
 
 \let\tikz@intersect@namedpaths=\pgfutil@empty
-- 
cgit v1.2.3

