From e38d14fedfd33854c2dfaa11c96ce35632dc068b Mon Sep 17 00:00:00 2001 From: roelderickx Date: Fri, 4 Feb 2022 19:02:07 +0100 Subject: [PATCH] #7 Prefer portrait if excess in both directions is equal --- hikingmap/page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hikingmap/page.py b/hikingmap/page.py index 9ea7f32..c40a0f4 100644 --- a/hikingmap/page.py +++ b/hikingmap/page.py @@ -143,7 +143,7 @@ def add_next_point(self, coord): if portrait_excess == 0 and landscape_excess == 0: self.set_orientation(self.orientation_unknown) - elif portrait_excess < landscape_excess: + elif portrait_excess <= landscape_excess: self.set_orientation(self.orientation_portrait) outside_page = (portrait_excess * landscape_excess > 0) elif portrait_excess > landscape_excess: