diff --git a/libs/shape.py b/libs/shape.py index 6b67687b..27469bc8 100644 --- a/libs/shape.py +++ b/libs/shape.py @@ -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: