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
commit dec4885e29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: