Fix crash when CanvasBox draws with nil canvas
This commit is contained in:
parent
1c803ff9c1
commit
868b6fdfe9
@ -29,6 +29,7 @@ func (this *canvasBox) Invalidate () {
|
||||
}
|
||||
|
||||
func (this *canvasBox) Draw (can canvas.Canvas) {
|
||||
if can == nil { return }
|
||||
this.box.Draw(can)
|
||||
if this.userDrawer != nil {
|
||||
this.userDrawer.Draw (
|
||||
|
Loading…
Reference in New Issue
Block a user