[DF-2555] Fix crash in heightmap copy\paste