Fixed event list click regression

This commit is contained in:
Mark Watkins 2014-07-19 16:18:54 +10:00
parent d8d4157c90
commit 6aa87bebac

View File

@ -1879,7 +1879,7 @@ void Daily::on_treeWidget_itemClicked(QTreeWidgetItem *item, int column)
double st=t-(winsize/2);
double et=t+(winsize/2);
gGraph *g=(*GraphView)[STR_GRAPH_EventBreakdown];
gGraph *g=GraphView->findGraph(STR_GRAPH_SleepFlags);
if (!g) return;
if (st<g->rmin_x) {
st=g->rmin_x;