diff options
-rw-r--r-- | historygraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/historygraph.cpp b/historygraph.cpp index 17bec38..1a1a579 100644 --- a/historygraph.cpp +++ b/historygraph.cpp @@ -198,7 +198,7 @@ QSGNode *HistoryGraph::createNodeTree() if (rect.x() < 0) { m_viewportTransform.translate(rect.x(), 0); } else if (rect.x() + rect.width() > width()) { - m_viewportTransform.translate(width() - (rect.x() + rect.width()), 0); + m_viewportTransform.translate(width() - (rect.x() + rect.width()) - margin, 0); } } else { m_viewportTransform.setToIdentity(); |