diff make-tile @ 11:6e4a8ddacf61

Fix very minor bug.
author David Barts <n5jrn@me.com>
date Thu, 26 Aug 2021 13:50:18 -0700
parents 1944acce0e6f
children 698b3335a63d
line wrap: on
line diff
--- 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.