From: Michal MalĂ˝ Date: Fri, 3 Apr 2015 21:36:03 +0000 (+0200) Subject: vstarty and vstopy should be ints, not doubles X-Git-Tag: 0.5c~13 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=d719b6977fd0e1b558424910827d314ce772187e;p=anyanka.git vstarty and vstopy should be ints, not doubles --- diff --git a/gui/graphview.cpp b/gui/graphview.cpp index 7ca1d17..8b5cd96 100644 --- a/gui/graphview.cpp +++ b/gui/graphview.cpp @@ -274,8 +274,8 @@ void GraphView::drawIntegrationBaseline(const int x, const int y) if (m_integrationMode == GraphView::IntegrationMode::BASELINE) { m_integrateStopBLYPix = relToYPix(m_controller->valueToRel(m_controller->getXYValues(xPixToRel(x)).second)); - double vstarty = std::min(m_integrateStartBLYPix, m_integrateStartYPix); - double vstopy = std::min(m_integrateStopBLYPix, y); + int vstarty = std::min(m_integrateStartBLYPix, m_integrateStartYPix); + int vstopy = std::min(m_integrateStopBLYPix, y); p.begin(m_pixmap); p.setPen(Qt::black);