IndexOutOfRangeException is thrown when painting Grass texture or Detail Mesh on the edge or corner of the Terrain (#23836)

Topic automatically created to discuss IndexOutOfRangeException is thrown when painting Grass texture or Detail Mesh on the edge or corner of the Terrain

The problem still exists in 6000.5.9 !