Shorten excessive lines.
Treat negative depth values as zero.