summaryrefslogtreecommitdiffstats
path: root/grapher/Graph.cxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-04 17:12:06 +0100
committerTim Moore <timoore@redhat.com>2009-12-04 17:12:06 +0100
commit2ebfefae53de7d6c001554a159dbcc8edfac9ec7 (patch)
tree9b1b4bb2aedbf6a6b8fb682bee77e6cf6409b0dd /grapher/Graph.cxx
parent52cf0905d93c33f7d6f768478572ea08df4c8af0 (diff)
downloadsystemtap-steved-2ebfefae53de7d6c001554a159dbcc8edfac9ec7.tar.gz
systemtap-steved-2ebfefae53de7d6c001554a159dbcc8edfac9ec7.tar.xz
systemtap-steved-2ebfefae53de7d6c001554a159dbcc8edfac9ec7.zip
hover text on the additional graphs
* grapher/Graph.cxx (window2GraphCoords): Take the entire graph's position into account too. * grapher/GraphWidget.cxx (GraphWidget): Hook up the data dialog's OK button. (onDataDialogOpen): If a data set doesn't have a title, use it's name (key) instead.
Diffstat (limited to 'grapher/Graph.cxx')
-rw-r--r--grapher/Graph.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/grapher/Graph.cxx b/grapher/Graph.cxx
index 57f1dc9a..b3429ef7 100644
--- a/grapher/Graph.cxx
+++ b/grapher/Graph.cxx
@@ -210,6 +210,6 @@ namespace systemtap
double& xgraph, double& ygraph)
{
xgraph = x -_xOffset;
- ygraph = -y + _yOffset + _graphHeight;
+ ygraph = -(y - _graphY) + _yOffset + _graphHeight;
}
}