Merge pull request #236 from jgars/master

Fixed bug in shape.py
This commit is contained in:
darrenl
2018-02-16 08:28:57 +08:00
committed by GitHub
+2
View File
@@ -120,6 +120,8 @@ class Shape(object):
font.setPointSize(8)
font.setBold(True)
painter.setFont(font)
if(self.label == None):
self.label = ""
painter.drawText(min_x, min_y, self.label)
if self.fill: