summaryrefslogtreecommitdiffstats
path: root/grapher/GraphStyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/GraphStyle.cxx')
-rw-r--r--grapher/GraphStyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/grapher/GraphStyle.cxx b/grapher/GraphStyle.cxx
index 6bf4e109..5a6621bd 100644
--- a/grapher/GraphStyle.cxx
+++ b/grapher/GraphStyle.cxx
@@ -184,7 +184,7 @@ ssize_t GraphStyleEvent::dataIndexAtPoint(double x, double y,
double xrect = (*ditr - left) * horizScale - 1.5 * graph->_lineWidth;
if (xrect <= xgraph && xgraph < xrect + 3.0 * graph->_lineWidth
&& yrect <= ygraph && ygraph < yrect + 3.0 * graph->_lineWidth)
- return static_cast<ssize_t>(distance(lower, ditr));
+ return static_cast<ssize_t>(distance(graphData->times.begin(), ditr));
}
return -1;
}