Skip to content

Fix indexing for DrawLines pattern

Laurens Groot requested to merge Moonypoony/vtk:fixlinedrawpattern into master

The OpenGL2 2D DrawLines routine uses wrong indexing for the newDistances (used for pattern display for segmented lines). The loop increases by 2, which is not taken into account. This can go out of bounds. Pattern display is wrong.

Merge request reports