From 52ccc8dcb096f611b33c1eba6022dcc95a4f624c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 10 Oct 2014 03:02:45 +0200 Subject: [PATCH] Hopefully fix graph rendering below time axis. --- signaldrawer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signaldrawer.cpp b/signaldrawer.cpp index 9b2124b..a68ee0c 100644 --- a/signaldrawer.cpp +++ b/signaldrawer.cpp @@ -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); -- 2.43.5