polygon-edit: trivial refactoring (lineList -> allLines)
polygon-edit: fix spliting line of adding polygon