Skip to content

Commit 44dda73

Browse files
committed
Ensure calling 'pathArrows' key from settings returns True or False.
1 parent 02ca902 commit 44dda73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapmaker/routing/routedpath.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def draw_line(node_0, node_1, tolerance=0.1, separation=2000):
480480
end_coords = self.__graph.nodes[terminal_node]['geometry'].centroid.coords[0]
481481
end_point = coords_to_point(end_coords)
482482
heading = (end_point - start_point).angle
483-
bz_end_point = end_point - BezierPoint.fromAngle(heading) * 0.9 * ARROW_LENGTH if settings.get('pathArrows') else end_point
483+
bz_end_point = end_point - BezierPoint.fromAngle(heading) * 0.9 * ARROW_LENGTH if settings.get('pathArrows', False) else end_point
484484
bz = bezier_connect(start_point, bz_end_point, angle, heading)
485485
path_geometry[path_id].append(GeometricShape(
486486
bezier_to_linestring(bz), {

0 commit comments

Comments
 (0)