From: Michal MalĂ˝ Date: Fri, 10 Oct 2014 21:07:28 +0000 (+0200) Subject: - Improve rendering of numeric cues on VALUES axis X-Git-Tag: 0.4a~20 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=be714f9eb3418843607a4927b7aeaf511c85ec6c;p=anyanka.git - Improve rendering of numeric cues on VALUES axis - Remove leftover debugging output --- 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();