Log Message:
-----------
Corrected a problem with contexts not being reset properly after
num_cmp or fun_cmp.
Modified Files:
--------------
pg/macros:
PGanswermacros.pl
Revision Data
-------------
Index: PGanswermacros.pl
===================================================================
RCS file: /webwork/cvs/system/pg/macros/PGanswermacros.pl,v
retrieving revision 1.38
retrieving revision 1.39
diff -Lmacros/PGanswermacros.pl -Lmacros/PGanswermacros.pl -u -r1.38 -r1.39
--- macros/PGanswermacros.pl
+++ macros/PGanswermacros.pl
@@ -1107,7 +1107,7 @@
# Get the proper Parser object for the professor's answer
# using the initialized context
#
- my $oldContext = &$Context($context); my $r;
+ my $oldContext = &$Context(); &$Context($context); my $r;
if ($num_params{units}) {
$r = new Parser::Legacy::NumberWithUnits($correctAnswer);
$options{rh_correct_units} = $num_params{units};
@@ -1970,7 +1970,7 @@
#
# Create the Formula object and get its answer checker
#
- my $oldContext = &$Context($context);
+ my $oldContext = &$Context(); &$Context($context);
my $f = new Value::Formula($correctEqn);
$f->{limits} = $func_params{'limits'};
$f->{test_points} = $func_params{'test_points'};
|