]> Devoid-pointer.net GitWeb - anyanka.git/commitdiff
Hopefully fix graph rendering below time axis.
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 10 Oct 2014 01:02:45 +0000 (03:02 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 10 Oct 2014 01:02:45 +0000 (03:02 +0200)
signaldrawer.cpp

index 9b2124bddd75fcb3d9fe2fca44b62a758b7e2ca3..a68ee0cb27d08189f9ba92c7d6b002fbe78200b3 100644 (file)
@@ -505,7 +505,7 @@ bool SignalDrawer::renderGraph(QPixmap* const target)
     int toXPix = relToXPix(m_gdData->ddata[i].first);
     int toYPix = relToYPix(m_gdData->ddata[i].second);
 
-    if (fromYPix > m_gHeight && toYPix > m_gHeight) {
+    if (fromYPix >= m_gHeight && toYPix >= m_gHeight) {
       /* Draw nothing */
     } else if (toXPix == fromXPix)
       p.drawLine(fromXPix, (fromYPix >= m_gHeight) ? m_gHeight : fromYPix, toXPix, (toYPix >= m_gHeight) ? m_gHeight : toYPix);