From: Michal MalĂ˝ Date: Thu, 31 Jul 2014 18:15:21 +0000 (+0200) Subject: Fix baseline integration line rendering in "baseline" mode X-Git-Tag: 0.3a~3 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=9f7e83820e4f33875fb85781f5b2ec3420f1b092;p=anyanka.git Fix baseline integration line rendering in "baseline" mode --- 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) {