Commit 8cf627ad authored by Nigel Tao's avatar Nigel Tao

Fix s/Width/Height/ typo in draw.go.

Fixes #531.

R=r
CC=golang-dev
https://golang.org/cl/189078
parent 10a5eb0a
......@@ -32,8 +32,8 @@ func Draw(dst Image, r Rectangle, src, mask image.Image, pt Point) {
if dx > mask.Width() {
dx = mask.Width()
}
if dy > mask.Width() {
dy = mask.Width()
if dy > mask.Height() {
dy = mask.Height()
}
}
dx -= pt.X
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment