Update line.cpp
Merge pull request #8728 from cellxiecao/patch-1

Update line.cpp