TILES-518 Applied patch by David Hay.
TILES-518
Applied patch by David Hay.

git-svn-id: 64d0ca227631da92532e2ab7c1519b56fd7cbde3@1042419 13f79535-47bb-0310-9956-ffa450edef68

timgifford/tiles,timgifford/tiles