Update the polygon when the edit lines change