Skip to content

Commit 78756d3

Browse files
committed
Fix a bug with MathQuill options in the context flag before it is really an issue.
The current code passes on the option from the context as a hard coded zero instead of the actual option value from the context flag. This works at this point because this is only used by the parserLogb.pl macro to make MathQuill not use the base change formula and the option value it is passing is zero. However, in the future if a context ever wanted to enable a MathQuill feature then it wouldn't work.
1 parent f5bb0b5 commit 78756d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

macros/PG.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,8 @@ sub ENDDOCUMENT {
994994

995995
if ($ansHash->{correct_value}) {
996996
for (keys %{ $ansHash->{correct_value}->context->flag('mathQuillOpts') }) {
997-
$mq_part_opts->{$_} = 0 unless defined $mq_part_opts->{$_};
997+
$mq_part_opts->{$_} = $ansHash->{correct_value}->context->flag('mathQuillOpts')->{$_}
998+
unless defined $mq_part_opts->{$_};
998999
}
9991000
}
10001001

0 commit comments

Comments
 (0)