From 4e668f51370a93cc9dc26b1a11a949b50493b353 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 8 Jan 2016 00:02:17 +0000
Subject: pgfplots (7jan16)

git-svn-id: svn://tug.org/texlive/trunk@39303 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/generic/pgfplots/pgfplots.errorbars.code.tex          | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'Master/texmf-dist/tex/generic/pgfplots/pgfplots.errorbars.code.tex')

diff --git a/Master/texmf-dist/tex/generic/pgfplots/pgfplots.errorbars.code.tex b/Master/texmf-dist/tex/generic/pgfplots/pgfplots.errorbars.code.tex
index 11299b16485..8e2a96a9054 100644
--- a/Master/texmf-dist/tex/generic/pgfplots/pgfplots.errorbars.code.tex
+++ b/Master/texmf-dist/tex/generic/pgfplots/pgfplots.errorbars.code.tex
@@ -568,7 +568,10 @@
 		\pgfplots@errorbar@draw{##1}{##2}%
 	}%
 }
-	
+
+\newif\ifpgfplots@error@bars@allow@name@path
+
+
 % This thing here shall draw all error bar commands listed in '#2'.
 %
 % It will be invoked when any plotting commands take effect (that
@@ -576,6 +579,12 @@
 % transformations are set up...)
 \def\pgfplots@errorbars@finishwithstyleoptions[#1]#2{%
 	\scope[/pgfplots/.cd,#1,/pgfplots/every error bar]% it uses the /pgfplots/.unknown handler
+	\ifpgfplots@error@bars@allow@name@path
+	\else
+		% 'name path=xxx' should NOT include errors bars! Only the
+		% main path.
+		\def\tikz@intersect@addto@path@names##1##2{}%
+	\fi
 	#2%
 	\endscope
 }
-- 
cgit v1.2.3

