# HG changeset patch
# User David Barts <n5jrn@me.com>
# Date 1630011018 25200
# Node ID 6e4a8ddacf61ce97715838d255d2c6de791f2998
# Parent  1944acce0e6f259bc502bc476073dce680374eed
Fix very minor bug.

diff -r 1944acce0e6f -r 6e4a8ddacf61 make-tile
--- a/make-tile	Thu Aug 26 08:37:46 2021 -0700
+++ b/make-tile	Thu Aug 26 13:50:18 2021 -0700
@@ -116,13 +116,13 @@
     if orientation == Orientation.VERTICAL:
         what = "column"
         strip = Column
-        maxn = image.width - 1
+        maxn = image.width
     else:
         what = "row"
         strip = Row
-        maxn = image.height - 1
+        maxn = image.height
     # Establish outer bound and sanity-check it.
-    outer = 0 if direction == Direction.ASCENDING else maxn
+    outer = 0 if direction == Direction.ASCENDING else maxn - 1
     if not strip(image, outer).is_all_white():
         raise TopoTilerException("Unexpected nonwhite edge ({0} = {1})!".format(what, outer))
     # Establish inner bound and sanity-check it.