From 9f7e83820e4f33875fb85781f5b2ec3420f1b092 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Thu, 31 Jul 2014 20:15:21 +0200 Subject: [PATCH] Fix baseline integration line rendering in "baseline" mode --- gui/graphview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/graphview.cpp b/gui/graphview.cpp index fc80654..986a40f 100644 --- a/gui/graphview.cpp +++ b/gui/graphview.cpp @@ -249,8 +249,8 @@ void GraphView::drawIntegrationBaseline(const int x, const int y) p.drawLine(m_integrateStartXPix, m_integrateStartYPix, m_integrateStartXPix, m_integrateStartBLYPix); p.drawLine(x, y, x, m_integrateStopBLYPix); p.end(); - reg += QRect(m_integrateStartXPix, vstarty, 1, abs(m_integrateStopBLYPix - m_integrateStartXPix) + 1); - reg += QRect(x, vstopy, 1, abs(m_integrateStopBLYPix - x) + 1); + reg += QRect(m_integrateStartXPix, vstarty, 1, abs(vstarty - m_integrateStartBLYPix) + 1); + reg += QRect(x, vstopy, 1, abs(y - m_integrateStopBLYPix) + 1); } if (m_integrateStartXPix > m_integrateStopXPix) { -- 2.43.5