Don't render empty part labels

This commit is contained in:
Florian Festi 2022-03-28 21:41:10 +02:00
parent 3d2a4819ac
commit 70c49afb57
1 changed files with 1 additions and 1 deletions

View File

@ -1140,7 +1140,7 @@ class Boxes:
if not before:
# restore position
self.ctx.restore()
if self.labels:
if self.labels and label:
self.text(label, x/2, y/2, align="middle center", color=Color.ANNOTATIONS, fontsize=4)
self.ctx.stroke()