diff --git a/box.go b/box.go index 1556d36..1587c45 100644 --- a/box.go +++ b/box.go @@ -326,7 +326,7 @@ func (this *box) Draw (can canvas.Canvas) { pen.Rectangle(bounds) // centered texture - if this.textureMode == textureModeCenter { + if this.textureMode == textureModeCenter && this.texture != nil { textureBounds := this.texture.Bounds() textureOrigin := bounds.Min.