提交 77b23b06 编写于 作者: K Kentaro Wada

Skip closing polygon if polygon points <= 2

上级 26a7d98e
......@@ -56,7 +56,8 @@ class Shape(object):
def close(self):
if len(self.points) <= 2:
logger.warn('Polygon should be created with points >2')
logger.error('Polygon should be created with points >2')
return
self._closed = True
def addPoint(self, point):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册