From 82ace1acfc2b9c718180f2b8ab84182001190cb9 Mon Sep 17 00:00:00 2001 From: Javier Garcia Date: Thu, 15 Feb 2018 13:35:46 +0100 Subject: [PATCH] Fixed bug in shape.py --- libs/shape.py | 2 ++ 1 file changed, 2 insertions(+) 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: