--- loncom/interface/lonnavmaps.pm 2004/09/18 16:55:33 1.292 +++ loncom/interface/lonnavmaps.pm 2004/09/20 15:23:13 1.294 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.292 2004/09/18 16:55:33 albertel Exp $ +# $Id: lonnavmaps.pm,v 1.294 2004/09/20 15:23:13 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1428,7 +1428,7 @@ sub render { # We only need to do this if we need to open the maps to show the # current position. This will change the counter so we can't count # for the jump marker with this loop. - while (($curRes = $mapIterator->next()) && !$found) { + while ($here && ($curRes = $mapIterator->next()) && !$found) { if (ref($curRes) && $curRes->symb() eq $here) { my $mapStack = $mapIterator->getStack(); @@ -3964,8 +3964,8 @@ sub countParts { sub countResponses { my $self = shift; my $count; - foreach my $part ($self->parts()) { - $count+= $self->responseIds($part); + foreach my $part (@{$self->parts()}) { + $count+= scalar($self->responseIds($part)); } return $count; }