Skip to content

Commit

Permalink
Fix volkszaehler#169: Javasript Runtime Error when cursor is in a dia…
Browse files Browse the repository at this point in the history
…gram region

without data points
  • Loading branch information
weiznich committed Jun 29, 2014
1 parent 702c5e4 commit 26ceed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/frontend/javascripts/wui.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ vz.wui.updateLegend = function() {
y = null;
} else { // no steps -> interpolate
var p1 = series.data[j - 1], p2 = series.data[j];
if (p1 === null || p2 === null)
if (p1 == null || p2 == null)
y = null;
else
y = p1[1] + (p2[1] - p1[1]) * (pos.x - p1[0]) / (p2[0] - p1[0]);
Expand Down

0 comments on commit 26ceed1

Please sign in to comment.