Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PCigales authored Oct 11, 2021
1 parent bd1664e commit 47c2c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPXTweaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4135,7 +4135,7 @@ class GPXTweakerWebInterfaceServer():
' return d;\r\n' \
' }\r\n' \
' function slope(dist, heig) {\r\n' \
' return dist>heig?(heig / Math.sqrt(dist**2 - heig**2)):(parseFloat(document.getElementById("slmax").innerHTML) / 100 * (heig==0?0:(heig>0?1:-1)));\r\n' \
' return dist>Math.abs(heig)?(heig / Math.sqrt(dist**2 - heig**2)):(parseFloat(document.getElementById("slmax").innerHTML) / 100 * (heig==0?0:(heig>0?1:-1)));\r\n' \
' }\r\n' \
' function segment_recalc(seg, whole=true) {\r\n' \
' let seg_ind = parseInt(seg.id.slice(7, -4));\r\n' \
Expand Down

0 comments on commit 47c2c8b

Please sign in to comment.