Fixed exception when line is too short
Sample diagram more complete with dimension lines