Commit 93e94d9a authored by Kyle Lutz's avatar Kyle Lutz Committed by Dave DeMarle
Browse files

Render trailing good points in line/point plots

This fixes a bug in which the trailing good points in a
data set would be skipped.

Change-Id: I5686c1b1c5ec3e77d29cd63327bdbd98702472bc
parent c8375331
......@@ -70,6 +70,13 @@ bool vtkPlotLine::Paint(vtkContext2D *painter)
lastGood = id;
}
// render any trailing good points
if (this->Points->GetNumberOfPoints() - lastGood > 2)
{
painter->DrawPoly(points + 2 * (lastGood + 1),
this->Points->GetNumberOfPoints() - lastGood - 1);
}
}
else
{
......
......@@ -209,6 +209,16 @@ bool vtkPlotPoints::Paint(vtkContext2D *painter)
lastGood = id;
}
// render any trailing good points
if (this->Points->GetNumberOfPoints() - lastGood > 2)
{
painter->DrawMarkers(this->MarkerStyle, false,
points + 2 * (lastGood + 1),
this->Points->GetNumberOfPoints() - lastGood - 1,
colors ? colors + 4 * (lastGood + 1) : 0,
nColorComponents);
}
}
else
{
......
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