commit | 3ba119400e6fd98bf5100d1c17303c377b6521e9 | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@golang.org> | Wed Dec 21 22:38:45 2016 +1100 |
committer | Nigel Tao <nigeltao@golang.org> | Wed Dec 28 23:11:51 2016 +0000 |
tree | db6f3a551a1ee27721a7b97832c57a6946a87b22 | |
parent | f1b1ff53e10e288d0ab6f161067c0a69b72cee28 [diff] |
font: fix rectangle-union for empty rectangles. The bounding box of a string does not necessarily contain the origin. Prior to this commit, BoundString(etc, "x") would call grow exactly once, with the first argument being the (empty) zero rectangle. Change-Id: Id7d4f6c250ac0749f6dae19d11f4e97f9c6f45bc Reviewed-on: https://go-review.googlesource.com/34674 Reviewed-by: Dave Day <djd@golang.org>