diff options
Diffstat (limited to 'grapher/GraphWidget.cxx')
-rw-r--r-- | grapher/GraphWidget.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/grapher/GraphWidget.cxx b/grapher/GraphWidget.cxx index 4a1e0918..53c7645d 100644 --- a/grapher/GraphWidget.cxx +++ b/grapher/GraphWidget.cxx @@ -70,8 +70,10 @@ namespace systemtap cr->paint(); for (GraphList::iterator g = _graphs.begin(); g != _graphs.end(); ++g) { + double x, y; + (*g)->getOrigin(x, y); cr->save(); - cr->translate((*g)->_graphX, (*g)->_graphY); + cr->translate(x, y); (*g)->draw(cr); cr->restore(); } |