From 816f7d93d5e2670885766e699f77e91f03ceb844 Mon Sep 17 00:00:00 2001
From: Sebastian Kuhnert
Date: Fri, 23 Oct 2009 08:33:28 +0000
Subject: make assignments in the optional argument of \points local

---
 exercisesheets.sty | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'exercisesheets.sty')

diff --git a/exercisesheets.sty b/exercisesheets.sty
index 22d2488..159cf43 100644
--- a/exercisesheets.sty
+++ b/exercisesheets.sty
@@ -600,7 +600,8 @@
   \exsh@subexpoints{#1}%
 }
 \newcommand{\points}[2][]{%
-  \exshset{pointsinfo={},#1}%
+  \bgroup
+  \exshset{#1}%
   \ifthenelse{\equal{}{\pgfkeysvalueof{/exsh/pointsinfo}}}{%
     \def\exsh@tmp{}%
   }{%
@@ -621,6 +622,7 @@
       }%
     }%
   }%
+  \egroup
 }
 \newcommand{\exsh@subexpoints}[1]{%
   \unskip\nobreak\space\nobreak\hspace*{\fill}\allowbreak\hspace*{\fill}%
-- 
cgit v1.2.3

