From 6bc1f5497cfb2f56d65c80a4c36ea3bad6dc046c Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 29 Oct 2010 00:31:31 +0000
Subject: pgf 2.10 (28oct10)

git-svn-id: svn://tug.org/texlive/trunk@20236 c570f23f-e606-0410-a88d-b1316a301751
---
 .../generic/pgf/systemlayer/pgfsys-common-postscript.def   | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

(limited to 'Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def')

diff --git a/Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def b/Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def
index 75d06305bb1..52e0ef9b224 100644
--- a/Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def
+++ b/Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def
@@ -7,7 +7,7 @@
 %
 % See the file doc/generic/pgf/licenses/LICENSE for more details.
 
-\ProvidesFileRCS $Header: /cvsroot/pgf/pgf/generic/pgf/systemlayer/pgfsys-common-postscript.def,v 1.18 2008/02/07 19:25:41 tantau Exp $
+\ProvidesFileRCS $Header: /cvsroot/pgf/pgf/generic/pgf/systemlayer/pgfsys-common-postscript.def,v 1.22 2008/10/01 14:19:33 tantau Exp $
 
 
 % Driver commands for postscript
@@ -263,7 +263,8 @@
             {
               \pgf@sys@tonumber{\pgf@xa} 1 \pgf@sys@tonumber{\pgf@xb}
               { 1 index 2 copy pgfproc setrgbcolor moveto 1.1 0 rlineto stroke }
-              for 
+              for
+              pop
             }
             for            
           }%
@@ -292,7 +293,8 @@
   \pgf@sys@bp@correct\pgf@yb%
   \pgf@sys@bp@correct\pgf@xc%
   \pgf@sys@bp@correct\pgf@yc%
-  \pgfsys@outerinvoke{
+  \edef\pgf@sys@marshal{%
+  \noexpand\pgfutil@insertatbegincurrentpage{\noexpand\pgfsys@outerinvoke{
     save true setglobal globaldict begin /pgfpat#1
     {
     \ifnum#9=0 [/Pattern /DeviceRGB] \else /Pattern \fi\space
@@ -316,7 +318,9 @@
     grestore
     setcolor
     } bind def end restore
-  }% <<
+  }}% <<
+  }%
+  \pgf@sys@marshal%
 }
 
 \def\pgfsys@setpatternuncolored#1#2#3#4{%
@@ -354,7 +358,7 @@
       /pgfdiff 8 index round cvi 8 index round cvi sub 2 mul 1 add def
       2 index 6 index sub pgfdiff div % put red-step on stack
       2 index 6 index sub pgfdiff div % put green-step on stack
-      2 index 6 index sub pgfdiff div % put green-step on stack
+      2 index 6 index sub pgfdiff div % put blue-step on stack
       pgfheight 9 index 9 index 9 index 14 index
       pgfdiff {
         3 index 3 index 3 index setrgbcolor % Set color
-- 
cgit v1.2.3

