From 4d5762f1ac4f3ca773593b0180b3960f329c24cd 2012-07-30 10:00:58 From: Michal Klocek Date: 2012-07-30 10:00:58 Subject: [PATCH] Fix zoom in chartviewer --- diff --git a/demos/chartviewer/window.cpp b/demos/chartviewer/window.cpp index cafb27a..7f94a94 100644 --- a/demos/chartviewer/window.cpp +++ b/demos/chartviewer/window.cpp @@ -556,6 +556,7 @@ void Window::mouseReleaseEvent(QMouseEvent *event) if (plotArea.contains(m_origin)) { QRectF rect = m_rubberBand->rect(); + rect.translate(-geometryRect.topLeft()); chart->zoomIn(rect); break; }