From be714f9eb3418843607a4927b7aeaf511c85ec6c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 10 Oct 2014 23:07:28 +0200 Subject: [PATCH] - Improve rendering of numeric cues on VALUES axis - Remove leftover debugging output --- signaldrawer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/signaldrawer.cpp b/signaldrawer.cpp index 54fa098..b42cbf5 100644 --- a/signaldrawer.cpp +++ b/signaldrawer.cpp @@ -268,7 +268,6 @@ void SignalDrawer::drawScaleByTicks(const RulerDrawData& rd, std::functionfontMetrics().ascent() / 2); const QString text = m_locale.toString(value, 'f', 2); /* Do not draw labels that would overflow */ QRect br = p->fontMetrics().boundingRect(text); -/* if (yPix - (br.height() / 2) < 0) - return;*/ + if (yPix - p->fontMetrics().ascent() < 0) + return; if (maxCueWidth < br.width()) maxCueWidth = br.width(); -- 2.43.5