From fbc98b4c76dfe00b3bb111504262a81e631e134b Mon Sep 17 00:00:00 2001 From: John Lindal Date: Wed, 4 Dec 2024 18:06:27 -0800 Subject: [PATCH] upgrade to latest JArray --- libj2dplot/code/J2DPlotFunctionBase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libj2dplot/code/J2DPlotFunctionBase.cpp b/libj2dplot/code/J2DPlotFunctionBase.cpp index f41756994..04f4870fe 100644 --- a/libj2dplot/code/J2DPlotFunctionBase.cpp +++ b/libj2dplot/code/J2DPlotFunctionBase.cpp @@ -109,7 +109,8 @@ J2DPlotFunctionBase::GetYRange const { const JSize pointCount = itsPlot->GetSmoothSteps(); - JArray list(pointCount); + JArray list; + list.SetMinSize(pointCount); EvaluateFunction(xMin, xMax, xLinear, pointCount, &list); *yMin = *yMax = 0.0;