diff --git a/run_page/gpxtrackposter/tracks_drawer.py b/run_page/gpxtrackposter/tracks_drawer.py index 912de8ce952..216b4e8da5b 100644 --- a/run_page/gpxtrackposter/tracks_drawer.py +++ b/run_page/gpxtrackposter/tracks_drawer.py @@ -47,5 +47,10 @@ def color( diff = length_range.diameter() if diff == 0: return color1 + if ( + self.poster.length_range.upper() / 1000 + < self.poster.special_distance["special_distance2"] + ): + return color1 return interpolate_color(color1, color2, (length - length_range.lower()) / diff)