Don't render empty part labels
This commit is contained in:
parent
3d2a4819ac
commit
70c49afb57
|
@ -1140,7 +1140,7 @@ class Boxes:
|
||||||
if not before:
|
if not before:
|
||||||
# restore position
|
# restore position
|
||||||
self.ctx.restore()
|
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.text(label, x/2, y/2, align="middle center", color=Color.ANNOTATIONS, fontsize=4)
|
||||||
self.ctx.stroke()
|
self.ctx.stroke()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue