Skip to content

Commit

Permalink
#7 Prefer portrait if excess in both directions is equal
Browse files Browse the repository at this point in the history
  • Loading branch information
roelderickx committed Feb 4, 2022
1 parent 7fbda55 commit e38d14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hikingmap/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e38d14f

Please sign in to comment.