Skip to content

Commit

Permalink
upgrade to latest JArray
Browse files Browse the repository at this point in the history
  • Loading branch information
jafl committed Dec 5, 2024
1 parent 06ae7f7 commit fbc98b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libj2dplot/code/J2DPlotFunctionBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ J2DPlotFunctionBase::GetYRange
const
{
const JSize pointCount = itsPlot->GetSmoothSteps();
JArray<Point> list(pointCount);
JArray<Point> list;
list.SetMinSize(pointCount);
EvaluateFunction(xMin, xMax, xLinear, pointCount, &list);

*yMin = *yMax = 0.0;
Expand Down

0 comments on commit fbc98b4

Please sign in to comment.