]> Cypherpunks repositories - gostls13.git/commitdiff
Fix s/Width/Height/ typo in draw.go.
authorNigel Tao <nigeltao@golang.org>
Fri, 15 Jan 2010 00:58:24 +0000 (11:58 +1100)
committerNigel Tao <nigeltao@golang.org>
Fri, 15 Jan 2010 00:58:24 +0000 (11:58 +1100)
Fixes #531.

R=r
CC=golang-dev
https://golang.org/cl/189078

src/pkg/exp/draw/draw.go

index 59adf1f6ac77f6e3b9f5d023c3a735455c0e37f8..3455eacb9e1ee5d0d4aed9e66002028a32a259a4 100644 (file)
@@ -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