Fixed bug in shape.py

This commit is contained in:
Javier Garcia 2018-02-15 13:35:46 +01:00
parent deb8b844f9
commit 82ace1acfc

View File

@ -120,6 +120,8 @@ class Shape(object):
font.setPointSize(8) font.setPointSize(8)
font.setBold(True) font.setBold(True)
painter.setFont(font) painter.setFont(font)
if(self.label == None):
self.label = ""
painter.drawText(min_x, min_y, self.label) painter.drawText(min_x, min_y, self.label)
if self.fill: if self.fill: