Version 1.1

This commit is contained in:
jthedering committed 2015-11-26 19:20:48 +00:00
1 parent 57e8158efd
commit 2d4995f0d8
7 files changed
+70 -39

No files matched your search

+8
View File
@@ -46,6 +46,14 @@ void AnalysisPlotView::drawBackground(QPainter* painter, const QRectF& rect)
double hz = s->xToHz(x);
double db = gainIterator.gainAt(hz);
double y = s->dbToY(db);
if (y == -1)
{
if (db < 0)
y = sceneRect().bottom() + 1;
else
y = sceneRect().top() - 1;
}
if (db == lastDb)
y = floor(y) + 0.5;
lastDb = db;