From d719b6977fd0e1b558424910827d314ce772187e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 3 Apr 2015 23:36:03 +0200 Subject: [PATCH] vstarty and vstopy should be ints, not doubles --- gui/graphview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.43.5