]> Devoid-pointer.net GitWeb - anyanka.git/commitdiff
vstarty and vstopy should be ints, not doubles
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 3 Apr 2015 21:36:03 +0000 (23:36 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 3 Apr 2015 21:36:46 +0000 (23:36 +0200)
gui/graphview.cpp

index 7ca1d17c8bab502e22ba99662d61ed861c8b6344..8b5cd964d8b755bc3c21cd37b9911e860752ba56 100644 (file)
@@ -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);