check s.reqWidth before assign
Vladimir Bauer
3 years ago
1 changed file(s) with
5 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+5
-1
progress.go
less
more
306
306
return err
307
307
}
308
308
} else {
309
width = s.reqWidth
309
if s.reqWidth > 0 {
310
width = s.reqWidth
311
} else {
312
width = 100
313
}
310
314
height = 100
311
315
}
312
316