--- loncom/xml/lonplot.pm 2002/01/09 16:51:51 1.35 +++ loncom/xml/lonplot.pm 2002/01/09 16:58:18 1.36 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Dynamic plot # -# $Id: lonplot.pm,v 1.35 2002/01/09 16:51:51 matthew Exp $ +# $Id: lonplot.pm,v 1.36 2002/01/09 16:58:18 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -633,7 +633,7 @@ sub start_data { } # complain if the number of data points is not the same as # in previous sets of data. - if (($curves[-1]->{'data'}) && ($#data != $#{$curves[-1]->{'data'}})){ + if (($curves[-1]->{'data'}) && ($#data != $#{@{$curves[-1]->{'data'}->[0]}})){ &Apache::lonxml::warning ('Number of data points is not consistent with previous '. 'number of data points');