Index: Hybrid/vtkXYPlotActor.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Hybrid/vtkXYPlotActor.cxx,v retrieving revision 1.69 diff -r1.69 vtkXYPlotActor.cxx 2103a2104 > newPts[0] = -1; 2108c2109 < else --- > else if (x2[0] >= p1[0] && x2[0] <= p2[0] && x2[1] >= p1[1] && x2[1] <= p2[1] ) 2111a2113,2116 > > //only create cell if either x1 or x2 is inside the range > if (newPts[0] >= 0) > { 2122c2127,2129 < newLines->InsertNextCell(2,newPts); --- > newLines->InsertNextCell(2,newPts); > } >