Skip to content
Snippets Groups Projects
Commit 46fd7f4f authored by T.J. Corona's avatar T.J. Corona
Browse files

In vtkGlyphSource2D::CreateDash, only add points if dash is filled.

This fix is in reference to bug report 0015357.
parent 562c644e
Branches
Tags
No related merge requests found
......@@ -530,14 +530,13 @@ void vtkGlyphSource2D::CreateDash(vtkPoints *pts, vtkCellArray *lines,
vtkCellArray *polys, vtkUnsignedCharArray *colors,
double scale)
{
vtkIdType ptIds[5];
ptIds[0] = pts->InsertNextPoint(-0.5, -0.1, 0.0);
ptIds[1] = pts->InsertNextPoint( 0.5, -0.1, 0.0);
ptIds[2] = pts->InsertNextPoint( 0.5, 0.1, 0.0);
ptIds[3] = pts->InsertNextPoint(-0.5, 0.1, 0.0);
if ( this->Filled )
{
vtkIdType ptIds[4];
ptIds[0] = pts->InsertNextPoint(-0.5, -0.1, 0.0);
ptIds[1] = pts->InsertNextPoint( 0.5, -0.1, 0.0);
ptIds[2] = pts->InsertNextPoint( 0.5, 0.1, 0.0);
ptIds[3] = pts->InsertNextPoint(-0.5, 0.1, 0.0);
polys->InsertNextCell(4,ptIds);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment