mirror of
https://github.com/golang/go
synced 2024-11-22 04:44:39 -07:00
image: use Rectangle{} instead of ZR
ZR is deprecated, so replace it with the literal Rectangle to represent the zero value.
This commit is contained in:
parent
0f003f9d15
commit
850472888d
@ -169,7 +169,7 @@ func (r Rectangle) Intersect(s Rectangle) Rectangle {
|
||||
//
|
||||
// if max(r0.Min.X, s0.Min.X) >= min(r0.Max.X, s0.Max.X) || likewiseForY { etc }
|
||||
if r.Empty() {
|
||||
return ZR
|
||||
return Rectangle{}
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user