Commit bd7b439f authored by allens's avatar allens

Fixed index check to get the last point correctly

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23525 18c085ea-50e0-402c-830e-de6fd14e8384
parent 26dd68c8
......@@ -970,7 +970,7 @@ avtOpenGLStreamlineRenderer::DrawHeadGeom(vtkPolyData *data)
continue;
}
if (idx1 == nPts-1)
if (idx1 < 0 && idx1 < nPts-1)
{
points->GetPoint(segptr[idx1-1], endPtPrev);
points->GetPoint(segptr[idx1], endPt);
......@@ -2157,7 +2157,7 @@ avtOpenGLStreamlineRenderer::GetEndPoints(vtkPolyData *data,
t1 = 0.0;
bool modifiedStartEnd = false;
//Find the begining
double beg = atts.GetDisplayBegin();
if (atts.GetDisplayBeginFlag() && beg > 0.0)
......@@ -2183,7 +2183,7 @@ avtOpenGLStreamlineRenderer::GetEndPoints(vtkPolyData *data,
if (nPts > 0 && (param->GetTuple1(segptr[nPts-1])<beg))
j0 = nPts+1;
}
float termination = 1000000;
switch (atts.GetReferenceTypeForDisplay())
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment